Part Number Hot Search : 
AN912 CMA271DA 1422514C CX1624 JOC2351 S1L9251X 54805 1N473
Product Description
Full Text Search
 

To Download SII3531A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Data Sheet
SII3531A PCI Express to Serial ATA Controller Data Sheet
Document # SiI-DS-0208-C
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
August 2006
Revision History Revision A C Derived from preliminary specification of SiI3531 This document is no longer under NDA. Removed confidential markings Comment Date 10/12/06 02/02/07
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 2
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Table of Contents
1 Overview ...........................................................................................................................................8
1.1
1.1.1 1.1.2 1.1.3
Features ..................................................................................................................................................... 8
Overall Features ...................................................................................................................................................8 PCI Express Features ..........................................................................................................................................8 Serial ATA Features .............................................................................................................................................8
1.2
References ................................................................................................................................................. 8 Device Electrical Characteristics ............................................................................................................ 9 SATA Interface Timing Specifications .................................................................................................. 11 SATA Interface Transmitter Output Jitter Characteristics.................................................................. 11 PCI Express Interface Timing Specifications....................................................................................... 12 PCI Express Interface Transmitter Output Jitter Characteristics ...................................................... 12 XTALI Requirements............................................................................................................................... 12 Power Supply Noise Requirements ...................................................................................................... 13 SII3531A Pin Listing................................................................................................................................ 14 SII3531A Pin Diagrams ........................................................................................................................... 15 SII3531A Pin Descriptions...................................................................................................................... 15
PCI Express Pins ...............................................................................................................................................15 LED / Hot Plug pins ............................................................................................................................................16 Serial ATA Signals..............................................................................................................................................16 NC Pins ..............................................................................................................................................................16 Power/Ground Pins ............................................................................................................................................17
2
Electrical Characteristics ................................................................................................................9
2.1 2.2 2.3 2.4 2.5 2.6 2.7
3
Pin Definition ..................................................................................................................................14
3.1 3.2 3.3
3.3.1 3.3.2 3.3.3 3.3.4 3.3.5
4 5
Package Drawing............................................................................................................................18 Programming Model.......................................................................................................................20
5.1 5.2 5.3 SII3531A Block Diagram ......................................................................................................................... 20 SII3531A S-ATA Port Block Diagram..................................................................................................... 21 Data Structures ....................................................................................................................................... 22
The Command Slot.............................................................................................................................................22 The Scatter/Gather Entry (SGE).........................................................................................................................23 The Scatter/Gather Table (SGT) ........................................................................................................................24 The Port Request Block (PRB)...........................................................................................................................24 The PRB Control Field........................................................................................................................................26 The PRB Protocol Override Field .......................................................................................................................27 Standard ATA Command PRB Structure............................................................................................................28 PACKET Command PRB Structure....................................................................................................................30 Soft Reset PRB Structure...................................................................................................................................31 External Command PRB Structure .....................................................................................................................32 Interlocked Receive PRB Structure ....................................................................................................................33 Command Issuance............................................................................................................................................34 Reset and Initialization .......................................................................................................................................34 Port Ready .........................................................................................................................................................35 Port Reset Operation..........................................................................................................................................35 Initialization Sequence........................................................................................................................................35 Interrupts and Command Completion.................................................................................................................36 Interrupt Sources ................................................................................................................................................36 Command Completion - The Slot Status Register .............................................................................................39 The Attention Bit .................................................................................................................................................40 Interrupt Service Procedure................................................................................................................................40 Interrupt No Clear on Read ................................................................................................................................40 Error Processing.................................................................................................................................................40 Error recovery procedures..................................................................................................................................41
5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 5.3.8 5.3.9 5.3.10 5.3.11
5.4
Operation ................................................................................................................................................. 34
5.4.1 5.4.2 5.4.3 5.4.4 5.4.5 5.4.6 5.4.7 5.4.8 5.4.9 5.4.10 5.4.11 5.4.12 5.4.13
6
Register Definitions .......................................................................................................................43
SiI-DS-0208-C 3
(c) 2006 Silicon Image, Inc.
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1 PCI Configuration Space ........................................................................................................................ 43
Device ID - Vendor ID........................................................................................................................................44 PCI Status - PCI Command...............................................................................................................................44 PCI Class Code - Revision ID............................................................................................................................45 BIST - Header Type - Latency Timer - Cache Line Size ..................................................................................45 Base Address Register 0....................................................................................................................................45 Base Address Register 1....................................................................................................................................46 Base Address Register 2....................................................................................................................................46 Subsystem ID - Subsystem Vendor ID ..............................................................................................................46 Capabilities Pointer.............................................................................................................................................47 Max Latency - Min Grant - Interrupt Pin - Interrupt Line ...................................................................................47 Header Write Enable ..........................................................................................................................................47 Power Management Capability...........................................................................................................................48 Power Management Control + Status.................................................................................................................48 MSI Capability ....................................................................................................................................................49 Message Address...............................................................................................................................................49 MSI Message Data .............................................................................................................................................49 PCI Express Capability.......................................................................................................................................50 Device Capabilities .............................................................................................................................................50 Device Status and Control..................................................................................................................................51 Link Capabilities .................................................................................................................................................51 Link Status and Control ......................................................................................................................................52 Global Register Offset ........................................................................................................................................52 Global Register Data ..........................................................................................................................................52 Port Register Offset ............................................................................................................................................53 Port Register Data ..............................................................................................................................................53 Advanced Error Reporting Capability .................................................................................................................53 Uncorrectable Error Status .................................................................................................................................54 Uncorrectable Error Mask...................................................................................................................................54 Uncorrectable Error Severity ..............................................................................................................................54 Correctable Error Status.....................................................................................................................................55 Correctable Error Mask ......................................................................................................................................55 Advanced Error Capabilities and Control............................................................................................................55 Header Log.........................................................................................................................................................56 Port Slot Status Register ....................................................................................................................................57 Global Control ....................................................................................................................................................57 Global Interrupt Status........................................................................................................................................58 PHY Configuration..............................................................................................................................................58 BIST Control Register.........................................................................................................................................58 BIST Pattern Register.........................................................................................................................................59 BIST Status Register ..........................................................................................................................................59 MemBIST Status Register ..................................................................................................................................59 Configuration Register Offset .............................................................................................................................59 Configuration Register Data ...............................................................................................................................60 Port LRAM..........................................................................................................................................................62 Port Slot Status ..................................................................................................................................................63 Port Control Set ..................................................................................................................................................63 Port Status..........................................................................................................................................................64 Port Control Clear...............................................................................................................................................65 Port Interrupt Status ...........................................................................................................................................65 Port Interrupt Enable Set / Port Interrupt Enable Clear.......................................................................................66 32-bit Activation Upper Address .........................................................................................................................66 Port Command Execution FIFO .........................................................................................................................67 Port Command Error ..........................................................................................................................................67 Port FIS Configuration ........................................................................................................................................69 Port PCI Express Request FIFO Threshold........................................................................................................70 Port 8B/10B Decode Error Counter ....................................................................................................................70 Port CRC Error Counter .....................................................................................................................................71 Port Handshake Error Counter ...........................................................................................................................71 Port PHY Configuration ......................................................................................................................................71 Port Device Status Register ...............................................................................................................................73 SiI-DS-0208-C 4 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.1.10 6.1.11 6.1.12 6.1.13 6.1.14 6.1.15 6.1.16 6.1.17 6.1.18 6.1.19 6.1.20 6.1.21 6.1.22 6.1.23 6.1.24 6.1.25 6.1.26 6.1.27 6.1.28 6.1.29 6.1.30 6.1.31 6.1.32 6.1.33
6.2
Internal Register Space - Base Address 0 ........................................................................................... 56
6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 6.2.10
6.3
Internal Register Space - Base Address 1 ........................................................................................... 61
6.3.1 6.3.2 6.3.3 6.3.4 6.3.5 6.3.6 6.3.7 6.3.8 6.3.9 6.3.10 6.3.11 6.3.12 6.3.13 6.3.14 6.3.15 6.3.16 6.3.17
(c) 2006 Silicon Image, Inc.
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.18 6.3.19 6.3.20 6.3.21 6.3.22 6.3.23 6.3.24 Port Device QActive Register .............................................................................................................................73 Port Context Register .........................................................................................................................................74 SControl .............................................................................................................................................................74 SStatus...............................................................................................................................................................75 SError .................................................................................................................................................................76 SActive ...............................................................................................................................................................76 SNotification .......................................................................................................................................................77 Global Register Offset ........................................................................................................................................77 Global Register Data ..........................................................................................................................................77 Port Register Offset ............................................................................................................................................78 Port Register Data ..............................................................................................................................................78
6.4
6.4.1 6.4.2 6.4.3 6.4.4
Internal Register Space - Base Address 2 ........................................................................................... 77
7
Power Management........................................................................................................................79
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 5
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Table of Tables
Table 2-1 Absolute Maximum Ratings.........................................................................................................................................9 Table 2-2 DC Specifications.........................................................................................................................................................9 Table 2-3 SATA Interface DC Specifications..............................................................................................................................10 Table 2-4 PCI Express Interface DC Specifications ...................................................................................................................10 Table 2-5 SATA Interface Timing Specifications ........................................................................................................................11 Table 2-6 SATA Interface Transmitter Output Jitter Characteristics, 1.5 Gb/s ...........................................................................11 Table 2-7 SATA Interface Transmitter Output Jitter Characteristics, 3 Gb/s ..............................................................................11 Table 2-8 PCI Express Interface Timing Specifications..............................................................................................................12 Table 2-9 PCI Express Interface Transmitter Output Jitter Characteristics ................................................................................12 Table 2-10 XTALI Requirements ................................................................................................................................................12 Table 2-11 Power Supply Noise Requirements..........................................................................................................................13 Table 3-1 SII3531A Pin Listing ...................................................................................................................................................14 Table 3-2 Pin Types ...................................................................................................................................................................14 Table 4-1 Package Dimensions .................................................................................................................................................18 Table 5-1 Scatter/Gather Entry (SGE)........................................................................................................................................23 Table 5-2 Scatter/Gather Table (SGT) .......................................................................................................................................24 Table 5-3 Control Field Bit Definitions ........................................................................................................................................26 Table 5-4 Protocol Override Bit Definitions ................................................................................................................................27 Table 5-5 Port Request Block For Standard ATA Commands ...................................................................................................28 Table 5-6 PRB FIS Area Definition.............................................................................................................................................29 Table 5-7 Port Request Block For PACKET Command .............................................................................................................30 Table 5-8 Port Request Block For Soft Reset Command ...........................................................................................................31 Table 5-9 Port Request Block For External Commands.............................................................................................................32 Table 5-10 Port Request Block For Receiving Interlocked FIS ..................................................................................................33 Table 5-11 Interrupt Steering .....................................................................................................................................................36 Table 5-12 Port Interrupt Causes And Control ...........................................................................................................................39 Table 6-1 SII3531A PCI Configuration Space ............................................................................................................................43 Table 6-2 SII3531A Internal Register Space - Base Address 0 .................................................................................................56 Table 6-3 SII3531A Internal Register Space - Base Address 1 .................................................................................................61 Table 6-4 Port LRAM layout .......................................................................................................................................................62 Table 6-5 Port LRAM Slot layout ................................................................................................................................................62 Table 6-6 Command Activation Register Address Translation ...................................................................................................62 Table 6-7 SActive Indirect Address Translation .........................................................................................................................62 Table 6-8 Command Error Codes ..............................................................................................................................................68 Table 6-9 Default FIS Configurations .........................................................................................................................................69 Table 6-10 SError Register Bits (DIAG Field).............................................................................................................................76 Table 6-11 SII3531A Internal Register Space - Base Address 2 ...............................................................................................77 Table 7-1 Power Management Register Bits..............................................................................................................................79
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 6
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Table of Figures
Figure 3-1 Pin Diagram for 48 QFN............................................................................................................................................15 Figure 4-1 Package Drawing 48 QFN ........................................................................................................................................18 Figure 4-2 Marking Specification - SII3531ACNU......................................................................................................................19 Figure 5-1 SII3531A Block Diagram ...........................................................................................................................................20 Figure 5-2 Port Logic Block Diagram..........................................................................................................................................21 Figure 5-3 SII3531A Interrupt Map .............................................................................................................................................38
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 7
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
1 Overview
The Silicon Image SII3531A is a PCI Express to single port Serial ATA controller. The SII3531A is designed to provide serial ATA connectivity with minimal host overhead and host to device latency. The SII3531A supports a 1-lane 2.5 Gb/s PCI Express bus and the Serial ATA Generation 2 transfer rate of 3.0 Gb/s (300 MB/s).
1.1 Features
1.1.1 Overall Features * Host Protocol o Optimized for transaction oriented designs - minimal Host overhead o Supports two command issuance mechanisms Efficient in both embedded and PC implementations Reduces dependency on bridge behavior * Fabricated in a 0.18 CMOS process with a 1.8 volt core and 3.3 volt I/Os * Available in a 48-pin QFN package (7x7 mm, 0.4 mm lead pitch). EPAD must be soldered to PCB GND. 1.1.2 PCI Express Features * Supports 1-lane 2.5 Gb/s PCI Express * All registers appear in unified memory space * All registers accessible through I/O space * Full-chip command completion status accessible with single PCI Express access 1.1.3 Serial ATA Features * Integrated Serial ATA Link and PHY logic * Compliant with Serial ATA 1.0 specifications * Supports Serial ATA Generation 2 transfer rate of 3.0 Gb/s Output Swing Control * Supports Native Queuing * Supports First Party DMA * Supports Port Multipliers * 31 Commands and Scatter/Gather Tables on-chip * Protocol Override per Command
1.2 References
*
* * * * * * Serial ATA / High Speed AT Attachment specification, Revision 1.0a Serial ATA II: Extensions to Serial ATA 1.0a, Revision 1.2 Serial ATA II: Port Multiplier, Revision 1.1 and Revision 1.2 Serial ATA II: Electrical Specification, Revision 1.0 Serial ATA II: Cables and Connectors, Volumes 1 and 2 PCI Express Base Specification Revision 1.0a PCI Express Card Electromechanical Specification Revision 1.1
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 8
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
2 Electrical Characteristics
2.1 Device Electrical Characteristics
Specifications are for Commercial Temperature range, 0oC to +70oC, unless otherwise specified. Symbol Parameter Ratings Unit VDDO I/O Supply Voltage 4.0 V VDDD Core Supply Voltage 2.15 V VDDSRX VDDSTX VDDSPLL Supply Voltage for S-ATA VDDPRX Receivers, Transmitters, PLLs 2.15 V VDDPTX Oscillator, respectively VDDPPLL VDDX VIN Input Voltage -0.3 ~ VDD+0.3 V IOUT DC Output Current 16 mA Thermal Resistance, Junction to JA 1 29.9 C/W Ambient, Still Air o TSTG Storage Temperature -65 ~ 150 C Note1: EPAD must be soldered to PCB GND Table 2-1 Absolute Maximum Ratings Symbol VDDD VDDSRX VDDSTX VDDSPL L VDDPRX VDDPTX VDDPPL L VDDX VDDO IDD1.8V VIH VIL V+ VVH IIH IIL VOH VOL Parameter Core Supply Voltage S-ATA Receiver Supply Voltage S-ATA Transmitter Supply Voltage S-ATA SerDes PLL Supply Voltage PCI Exp Receiver Supply Voltage PCI Exp Transmitter Supply Voltage PCI Exp SerDes PLL Supply Voltage Oscillator Power Supply Voltage(I/O) Supply Current (1.8V Supply) Condition 3GHz Operating Type 3.0 3.3 290* 3.6 330* V mA 1.71 1.8 1.89 V Min Limits Typ Max Unit
Input High Voltage 2.0 V Input Low Voltage 0.8 V Input High Voltage Schmitt 2.0 V Input Low Voltage Schmitt 0.8 V Hysteresis Voltage Schmitt 0.4 V Input High Current VIN = VDD -10 10 A Input Low Current VIN = VSS -10 10 A Output High Voltage 2.4 V Output Low Voltage 0.4 V 3-State Leakage IOZ -10 10 A Current *3.3V power consumption depends on LED status. If all LEDs are disabled, 3.3V power consumption will be uA. Table 2-2 DC Specifications
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 9
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Symbol VDOUT VDIN V SATA_SQ V SATA_ACCM Z SATA_DIN Z SATA_DOUT Z SATA_SIN Z SATA_SOUT Parameter TX+/TX- differential peakto-peak voltage swing. RX+/RX- differential peakto-peak input sensitivity RX+/RX- OOB Signal Detection Threshold Tx AC common-mode voltage Tx Pair Differential impedance Rx Pair Differential impedance Tx Single-Ended impedance Rx Single-Ended impedance Condition Terminated by 50 Ohms. Tx Swing Value = 1100 Min 400 200 50 125 200 50 85 85 40 40 100 100 115 115 Limits Typ 500 Max 700 Unit mV mV mV mV ohms ohms ohms ohms
Table 2-3 SATA Interface DC Specifications Symbol V PCI_DOUT V PCI_DE-RATIO V PCI_DIN Z PCI_DIN Z PCI_DOUT Z PCI_SIN Z PCI_SOUT Z PCI_RX-HIGHIMP-DC
Parameter TX+/TX- differential peak-topeak voltage swing. Tx De-Emphasized Differential Output Voltage RX+/RX- differential peak-topeak input sensitivity Tx Pair Differential impedance Rx Pair Differential impedance Tx Single-Ended impedance Rx Single-Ended impedance Rx Powered Down Impedance Electrical Idle Detect Threshold
Condition Terminated by 50 Ohms. Ratio
Min 800 - 3.0 175
Limits Typ 1000 -3.5
Max 1200 -4.0 1200
Unit mV dB mV ohms ohms ohms ohms ohms
DC impedance DC impedance DC impedance DC impedance DC impedance Measured at the Rx pins
80 80 40 40 200k 65
100 100 50 50
120 120 60 60
Z PCI_RX-IDLEDET-DIFFp-p
175
mV
Table 2-4 PCI Express Interface DC Specifications
Maximum Amplitude Minimum Amplitude
Peak-to peak Total Jitter
Eye Diagram
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 10
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
2.2 SATA Interface Timing Specifications
Symbol TTX_RISE_FALL TTX_TOL_FREQ Parameter Rise and Fall time at transmitter Tx Frequency Long Term Stability Condition 20%-80% at Gen 1 20%-80% at Gen 2 Min 100 67 -350 Limits Typ Max 273 136 +350 Unit ps ppm
Table 2-5 SATA Interface Timing Specifications
2.3 SATA Interface Transmitter Output Jitter Characteristics
Symbol TJ5UI_15G Condition Measured at Tx output pins Total Jitter, Data-Data 5UI peak to peak phase variation Random data pattern Measured at Tx output pins Deterministic Jitter, Datapeak to peak phase variation Data 5UI Random data pattern Measured at Tx output pins Total Jitter, Data-Data peak to peak phase variation 250UI Random data pattern Measured at Tx output pins Deterministic Jitter, Datapeak to peak phase variation Data 250UI Random data pattern Parameter Min Limits Typ 80 Max Unit ps
DJ5UI_15G
50
ps
TJ250UI_15G
85
ps
DJ250UI_15G
55
ps
Table 2-6 SATA Interface Transmitter Output Jitter Characteristics, 1.5 Gb/s Symbol TJfBAND/10_3G Parameter Total Jitter, fC3dB=fBAUD/10 Condition Measured at SATA Compliance Point clock pattern Load = LL Laboratory Load Measured at SATA Compliance Point clock pattern Load = LL Laboratory Load Measured at SATA Compliance Point Random data pattern Load = LL Laboratory Load Measured at SATA Compliance Point Random data pattern Load = LL Laboratory Load Min Limits Typ 70* Max Unit ps
DJfBAND/10_3G
Deterministic Jitter, fC3dB=fBAUD/10
45*
ps
TJfBAND/500_3G
Total Jitter, fC3dB=fBAUD/500
80
ps
DJfBAND/500_3G
Deterministic Jitter, fC3dB=fBAUD/500
55
ps
Table 2-7 SATA Interface Transmitter Output Jitter Characteristics, 3 Gb/s * With fC3dB=fBAUD/10 bandwidth, jitter analysis algorithm provided by oscilloscope manufacture requires full transition density which is clock pattern. A series resistor of 75ohms should be populated close to the VDDX pin
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 11
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
2.4 PCI Express Interface Timing Specifications
Symbol TPCI_UI TPCI_TX_RISE_FALL TPCI_TX-IDLE-MIN TPCI_TX-IDLE-SET-TOIDLE
TPCI_TX-IDLE-TO-TODIFF-DATA
TPVPERL TPERST-CLK TPERST
Parameter Condition Tx / Rx Unit Interval SSC disabled Rise and Fall time at 20%-80% transmitter Minimum time spent in Electrical Idle Maximum time to transition to a valid Electrical Idle after sending an Electrical Idle ordered set Maximum time to transition to valid TX specifications after leaving an Electrical Idle condition Power stable to PERST# inactive REFCLK stable before PERST# inactive PERST# active time
Min 399.88 0.125 50
Limits Typ 400
Max 400.12
Unit ps UI UI
20
UI
20
UI
100 100 100
ms us us
Table 2-8 PCI Express Interface Timing Specifications
2.5 PCI Express Interface Transmitter Output Jitter Characteristics
Symbol TJPCIe Parameter Total Jitter Condition Defined by PCI Express Base Specification Rev 1.1 Min Limits Typ 80 Max Unit ps
Table 2-9 PCI Express Interface Transmitter Output Jitter Characteristics
2.6 XTALI Requirements
Symbol TXTAL_FREQ TXTALI_J Parameter Nominal Frequency XTALI frequency tolerance Table 2-10 XTALI Requirements -50 Condition Min Limits Typ 25 +50 Max Unit MHz ppm
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 12
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
2.7 Power Supply Noise Requirements
Symbol VNOISE_VDDA VNOISE_VDDD VNOISE_VDDO Condition peak-to-peak sinewave across 1.8V Analog Power Noise 50KHz to 50MHz frequency 1.8V Digital Power Noise range. Measured with differential probe 3.3V IO Power Noise trigger by noise source Parameter Min Limits Typ Max 50 100 200 Unit mV mV mV
Table 2-11 Power Supply Noise Requirements
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 13
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
3 Pin Definition
3.1 SII3531A Pin Listing
This section describes the pin-out of the SII3531A PCI Express to Serial ATA host controller. The table below gives the pin numbers, pin names, pin types, drive types where applicable, internal resistors where applicable, and descriptions. Power pins (VDD and VSS) are excluded from this listing. Table 3-1 SII3531A Pin Listing Pin #
2 3 7 8 10 11 15 16 19 20 23 24 25 27 30 31 32 33 34 35 36 38 39 40 41 43 44 45 47
Pin Name
XTALO XTALI SRx+ SRxSTxSTx+ PRx+ PRxPTxPTx+ REFCLK+ REFCLKPERST_N LED0 LED1 HPL_N LED2 LED3 NC NC HPLE_N NC NC NC NC NC NC NC NC
Type
Analog Analog Diff In Diff In Diff Out Diff Out Diff In Diff In Diff Out Diff Out Diff In Diff In I-Schmitt OD OD I-Schmitt OD OD I -
Drive
Internal Resistor
Description
Crystal Output Crystal Input Serial ATA differential receiver + input Serial ATA differential receiver - input Serial ATA differential transmitter - output Serial ATA differential transmitter + output PCI Express differential receiver + input PCI Express differential receiver - input PCI Express differential transmitter - output PCI Express differential transmitter + output PCI Express differential reference clock + input PCI Express differential reference clock - input PCI Express Reset Activity LED indicator Connect LED indicator Hot Plug Switch input Hot Plug Attention LED indicator Hot Plug Power LED indicator Do Not Connect to any circuitry Do Not Connect to any circuitry Hot Plug Enable Do Not Connect to any circuitry Do Not Connect to any circuitry Do Not Connect to any circuitry Do Not Connect to any circuitry Do Not Connect to any circuitry Do Not Connect to any circuitry Do Not Connect to any circuitry Do Not Connect to any circuitry
12 mA 12 mA 70K Pull Up 12 mA 12 mA 58K Pull Down 58K Pull Down 70K Pull Up 70K Pull Up 70K Pull Up 70K Pull Up 70K Pull Up 70K Pull Up 70K Pull Up 70K Pull Up 58K Pull Down
Table 3-2 Pin Types Pin Type I I-Schmitt Analog I/O-Schmitt OD Pin Description Input Pin with LVTTL Thresholds Input Pin with Schmitt Trigger Analog Input Pin Bi-directional Pin with Schmitt Trigger Open Drain Output Pin
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 14
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
3.2 SII3531A Pin Diagrams
The diagram below shows the pin layout for the SII3531A in a 48 QFN package.
42 VDDO
46 VDDD
VSSX 1 XTALO XTALI 2 3
37 VSSD 36 35 34
48 VSSD
47 NC
45 NC
44 NC
43 NC
41 NC
40 NC
39 NC
38 NC
HPLE_N NC NC
VDDX 4 VDDSPLL 5
SII3531A
Top View
33 LED3 32 LED2
VSSSPLL 6 SRx+ 7 SRx- 8 VDDS 9
31 HPL_N 30 29 28 27 26 25 LED1 VSSO VDDD LED0 VSSD PERST_N
STx- 10 STx+ 11 VSSS 12 13 14 15 16 17 18 19 20 21 22 23 REFCLK+ 24 REFCLK-
PRx+
VSSP
VSSP
PTx+
PRx-
PTx-
VDDP
VDDP
VSSP
Figure 3-1 Pin Diagram for 48 QFN
3.3 SII3531A Pin Descriptions
3.3.1 PCI Express Pins Signal Name PRx+ PRxPTx+ PTxREFCLK+ REFCLKPERST_N Pin Number(s) 15 16 20 19 23 24 25 Description Receive +. Serial receiver differential signal, positive side. Receive -. Serial receiver differential signal, negative side. Transmit +. Serial transmitter differential signal, positive side. Transmit -. Serial transmitter differential signal, negative side. Reference Clock +. PCI Express system supplied differential reference clock, positive side. Reference Clock -. PCI Express system supplied differential reference clock, negative side. Reset. PERST_N initializes the PCI Express interface and sets internal registers to their initial state.
VDDP
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 15
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
3.3.2 LED / Hot Plug pins Signal Name LED0 LED1 LED2 LED3 HPL_N HPLE_N 3.3.3 Serial ATA Signals Signal Name SRx+ SRxSTx+ STxXTALI XTALO 3.3.4 NC Pins Signal Name NC Pin Number(s) 34,35,38,39,40,41 43,44,45,47 Description Do not connect. Must leave open for normal operation Pin Number(s) 7 8 11 10 3 2 Description Receive +. Serial receiver differential signal, positive side. Receive -. Serial receiver differential signal, negative side. Transmit +. Serial transmitter differential signal, positive side. Transmit -. Serial transmitter differential signal, negative side. Crystal In. Crystal oscillator pin for SerDes reference clock. The clock precision recommendation is 50ppm. Crystal Out. Crystal oscillator pin for SerDes reference clock. A 25MHz crystal must be used. Pin Number(s) 27 30 32 33 31 36 Description Activity LED. Activity LED driver for the Serial ATA channel. This is an active low output (LED lit when pin is at 0V). Connect LED. Connect LED driver for the Serial ATA channel. This is an active low output (LED lit when pin is at 0V). Hot Plug LED. ATTENTION LED driver for Hot Plug. This is an active low output (LED lit when pin is at 0V). Hot Plug LED. POWER LED driver for Hot Plug. This is an active low output (LED lit when pin is at 0V). Hot Plug Switch input. Input for the Hot Plug Attention switch. This is an active low input (closed switch connects input to 0V). Hot Plug enable. Active low enable for the Hot Plug I/Os.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 16
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
3.3.5 Power/Ground Pins All like-named power/ground pins, in the table below, are connected together within the package. Pin Name VDDS VSSS VDDSPLL VSSSPLL VDDP VSSP VDDX VSSX VDDO VSSO VDDD VSSD Pin Number(s) 9 12 5 6 13, 17, 22 14, 18, 21 4 1 42 29 28, 46 26, 37, 48 Description SATA Power. This pin provides 1.8V for the Serial ATA receivers and transmitters. SATA Ground. This pin provides the Ground reference for the Serial ATA receivers and transmitters. SATA PLL Power. This pin provides 1.8V for the PLL of the Serial ATA PHY. SATA PLL Ground. This pin provides the Ground reference for the PLL of the Serial ATA PHY. PCI-E Power. These pins provide 1.8V for the PCI Express receivers and transmitters. PCI-E Ground. These pins provide the Ground reference for the PCI Express SerDes. Oscillator Power. This pin provides 1.8V for the crystal oscillator (associated with XTALI and XTALO pins). To minimize this noise coupling to an integrated PLL, a series resistor of 75ohms should be populated close to the VDDX pin Oscillator Ground. This pin provides the Ground reference for the crystal oscillator (associated with XTALI and XTALO pins). I/O Power. This pin provides 3.3V for the digital I/O. I/O Ground. This pin provides the Ground reference for the digital I/O. Digital Power. These pins provide 1.8V for the digital logic. Digital Ground. These pins provide the Ground reference for the digital portion of the chip.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 17
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
4 Package Drawing
*EPAD must be soldered to PCB GND. Figure 4-1 Package Drawing 48 QFN Dimensions (mm) Nominal Maximum 0.50 0.40 0.50 0.25 0.30 5.46 5.61 5.46 5.61 0.85 1.00 0.02 0.05 0.65 0.80 0.20 REF 7.00 BSC 6.75 BSC 7.00 BSC 6.75 BSC 14 0.42 0.60
Symbol e L b D2 E2 A A1 A2 A3 D D1 E E1 P
Minimum 0.30 0.18 5.31 5.31 0.00 -
0.24
Table 4-1 Package Dimensions
Part Ordering Number: SII3531ACNU (48 pin QFN lead free package)
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 18
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Pin 1 designator location
Logo SII3531ACNU LLLLLL.LL-L YYWW XXXXXXX SiI P/N Lot # (= Job#) Date Code Trace #
Figure 4-2 Marking Specification - SII3531ACNU
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 19
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5 Programming Model
5.1 SII3531A Block Diagram
The SII3531A contains the major logic modules shown below.
PCI Express
PCI Express Serdes
PCI Express Transaction Layer
PCI Express
Port Logic
Application Interface
SATA PLL
XTAL
PCI Express TxLink Configuration and Global Registers Interrupt Logic
XTAL
PCI Express PLL
Test Control
Test Pins
Figure 5-1 SII3531A Block Diagram The PCI Express Core logic block provides PCI Express 1.0a compatibility. The Global Register File block corresponds to the registers addressed by Base Address Register 0; refer to Section 6.1.17 on page 50.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 20
SATA
PCI Express Core
PCI Express RxLink
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.2 SII3531A S-ATA Port Block Diagram
The block diagram below shows the logic structure of the SII3531A Serial-ATA Port.
Local Arbiter
PCI Exp - LRAM DMA Controller Data Path A 2 Addresses
Command Fetch FIFO 31 x 5 Command Fetch Machine Command Execute FIFO 31 x 5 Command Receive FIFO 31 x 5
Port Register File PCI Exp - SATA DMA Controller Data Path B 1 Address Data Path A (Initiator / Target)
Command Execution Machine P o r t B Rx FIFO Registers SATA PHY Data Path B SATA Enhanced Link
Initiator
P o r t A
LRAM 512 x 64 Dual Port
PCI Exp Application Interface Data Path B (Initiator) Target
PCI Exp / SATA Data FIFO 128 x 64
Figure 5-2 Port Logic Block Diagram The Port Logic consists of: * A Local Arbiter that arbitrates between the two DMA Controllers * A DMA Controller for the PCI Express to LRAM Data Path * A DMA Controller for the PCI Express to Serial-ATA Data Path * A 512x64 Local RAM (LRAM) that contains: 31 LRAM Slots each of which is 128 bytes (16 Qwords) and 128 bytes used to support 16 Port Multiplier devices (1 Qword per device) * A Data FIFO that contains 1024 bytes (128 Qwords) * A State Machine for Command Fetch * A State Machine for Command Execution * A Serial-ATA Link * A Serial-ATA PHY Each of the two state machines has an associated FIFO which, when non-empty, indicates that processing is required. The FIFO is loaded with a 5-bit command "slot" number to activate a state machine. The slot number can range from 0 to 30, corresponding to the maximum number of active commands supported. Command flow begins with a host driver building a command in a non-cached region of host memory. The data structure is referred to as a PRB (Port Request Block). The 64-byte PRB is transferred into an available command slot in the LRAM by one of two methods: the direct method or the indirect method. The host driver is responsible for determining which slots are available. Either of the two command transfer methods may be used for each command transfer. The two methods are:
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 21
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Direct Command Transfer Method - Host controlled write to Slot In systems that have the capability to perform burst writes, this is the preferred method of command transfer. Embedded systems would most likely use this method. LRAM is directly mapped through use of Base Address Register 1, and appears as a block of memory to the host driver. The host driver writes the PRB contents into the appropriate slot in LRAM. Ideally, this operation is performed as a single PCI Express transaction. The 5-bit slot number (0-30) is written to the Command Execution FIFO. The Active bit associated with the selected slot becomes set in the Port Slot Status register. Note that the Command Fetch FIFO and Command Fetch State Machine are not used for the direct method of command transfer. Indirect Command Transfer Method - SII3531A controlled command transfer The host driver builds a PRB in host memory, selects a free slot, and writes the physical address of the PRB into the Activation register corresponding to the selected slot. This causes the SII3531A to push the 5-bit slot number (0-30) into the Command Fetch FIFO. The Command Fetch State Machine, while in an idle state, continuously interrogates the Command Fetch FIFO for a "non-empty" condition. Upon retrieval of a 5-bit slot number from the FIFO, the Command Fetch State Machine retrieves the physical address of the PRB from the corresponding activation register, sets the Active bit associated with the selected slot in the Port Slot Status register, and queues a PCI Express read of the PRB into the associated Slot in LRAM. The Command Fetch State Machine waits for completion of the transfer, pushes the 5-bit slot number into the Command Execution FIFO, and returns to the idle state, waiting for a non-empty condition in the Command Fetch FIFO. The Command Execution State Machine is responsible for directing the flow of the command and response FISes between the command slot and the serial ATA link, directing the flow of data between PCI Express and the serial ATA link, and posting completion status to the host. It is also responsible for error handling when exceptions occur in the normal command flow. Command execution begins when the idle Command Execution State Machine recognizes that the serial ATA bus is in a nonbusy state and the Command Execution FIFO is non-empty. The Command Execution State Machine retrieves the 5-bit slot number (0-30) from the Command Execution FIFO and uses it to index the command slot in LRAM. The command FIS is addressed and sent to the serial ATA link to be sent to the device. Control flags in the command slot determine the type of data transfer. The Command Execution State Machine waits for a response FIS from the device and directs its activities accordingly. If the received FIS is a data FIS, the DMA address and count are determined by examining the Scatter/Gather Entries in the PRB and, if necessary, "walking" a Scatter/Gather Table. The DMA address and count are loaded into the DMA controller and the controller is armed. A DMA activate FIS causes similar behavior, with data flowing from PCI Express to the Serial ATA link. When the command has completed, the Command Completion bit in the Port Interrupt Status register is set to reflect the successful completion of the command. If an error occurred, the Command Error bit is set in the Port Interrupt Status register. The basic command flow proceeds as follows: 1. The host builds a 64-byte Port Request Block (PRB) that contains: * The Register- Host to Device FIS to send to the SATA device * Up to two scatter/gather entries to define regions of host memory to be accessed for associated read/write data. Additional scatter/gather entries may be associated with the command. * Various optional control flags to direct the SII3531A to perform special processing, to control interrupt assertion, to vary the normal protocol flow, etc. 2. The host issues the command to the SII3531A. 3. The SII3531A executes the command, performing all interaction with the SATA device and transferring data between host memory and the SATA device. 4. The SII3531A asserts a PCI Express interrupt to indicate command completion. 5. The host reads the SII3531A port slot status to determine which command(s) have completed.
5.3 Data Structures
5.3.1 The Command Slot Each port within the SII3531A contains 31 command slots. The slots are numbered 0 through 30. Each command issued by the host occupies a single command slot. The host decides which slot to use and issues a command to the selected slot. A command slot occupies 128 bytes within the SII3531A RAM array and consists of a 64 byte PRB (Port Request Block) and a 64-byte scatter/gather table. The host builds the PRB. It contains the Register-Host To Device FIS to transmit to the attached SATA device and up to two scatter/gather entries that define host memory regions to be used for any read/write data associated with the command. If more scatter/gather entries are required to define additional host memory regions, the SII3531A will fetch them from host memory as needed. The host may simply append the additional SGT entries to the PRB, or one of the scatter/gather entries in the PRB may be used to define an SGT (scatter/gather table) that resides in host memory.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 22
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
The host may issue commands to any number of available command slots. The host may freely intermix non-queued, legacy queued, native queued, PIO, and DMA command types in any available slot. Commands will always be executed in the order that they were issued. The SII3531A will enforce command type issuance to the SATA device and will not allow incompatible command types to be issued to a device. This relieves the host of the burden of making sure that incompatible command types are not intermixed in the device. It is the host's responsibility to manage slot usage. The host must keep track of which slots have commands outstanding and which slots are available for new commands. Issuing a command to a slot that is currently in use will result in unpredictable behavior. For queued commands, the slot number is used as the queue tag. It is the host's responsibility to ensure that the tag number in the Register-Host To Device FIS defined in the PRB matches the slot number to which the command is issued. 5.3.2 The Scatter/Gather Entry (SGE) A scatter/gather entry (SGE) defines a region of host memory to be used for data transfer associated with a command. Each scatter/gather entry defines a single contiguous physically addressed region.
31 0
Data Address Low Data Address High Data Count TRM (31) LNK (30) DRD (29) XCF (28) Reserved[27:0]
0x00 0x04 0x08 0x0C
Table 5-1 Scatter/Gather Entry (SGE) The first quadword, at offset 0, contains the physical address of the region in host memory. The entire 64-bit address must be defined. On 32-bit systems the upper 32 bits must be zero. The data address may point to a region to be used for data transfer, or it may point to a scatter/gather table (SGT), which is a collection of four SGEs. The LNK bit (bit 30 at offset 0x0c) defines the type of region. When LNK is zero, the region is a data region; when LNK is one, the region is a scatter/gather table that will be fetched by the SII3531A to obtain a data region definition. The Data Count field at offset 0x08 defines the length, in bytes, of the contiguous data region. When the LNK bit is set to one, indicating an SGT link, the SII3531A ignores this field. The TRM bit (bit 31 at offset 0x0c), when set to one, indicates that this is the final SGE associated with the command and no additional SGEs follow it. The DRD bit (bit 29 at offset 0x0c), when set to one, directs the SII3531A to discard the data read from the device for the length associated with the data count. When this bit is set to one, the SII3531A ignores the data address. The XCF bit (bit 28 at offset 0x0c) indicates whether the region defined by this SGE is to be used for data transfer (XCF set to zero) or an external command fetch (XCF set to one). See section 5.3.10 for additional information on external command processing.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 23
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.3 The Scatter/Gather Table (SGT) The SGT is simply a contiguous collection of four SGEs. The PRB contains two SGEs. When more than two SGEs are required to fully define the entire data transfer of a command, the SII3531A fetches additional SGEs in groups of four at a time, or one SGT. The SGT occupies the upper 64 bytes of a command slot in SII3531A RAM. When needed, only one SGT resides in RAM at a time. The SII3531A fetches each required SGT, overwriting the previous SGT in RAM. Since the first two SGEs reside in the PRB RAM area, they are always available in case the SII3531A needs to rescan the scatter/gather list for out of order data delivery. SGTs must reside on a quadword (64-bit) naturally aligned boundary in host memory. In other words, bits[2:0] of the physical address of the SGT in host memory must be zero.
31 0
SGE0 Data Address Low SGE0 Data Address High SGE0 Data Count SGE0 TRM SGE0 LNK SGE0 DRD SGE0 XCF Reserved[27:0] SGE1 Data Address Low SGE1 Data Address High SGE1 Data Count SGE1 TRM SGE1 LNK SGE1 DRD SGE1 XCF Reserved[27:0] SGE2 Data Address Low SGE2 Data Address High SGE2 Data Count SGE2 TRM SGE2 LNK SGE2 DRD SGE2 XCF Reserved[27:0] SGE3 Data Address Low SGE3 Data Address High SGE3 Data Count SGE3 TRM SGE3 LNK SGE3 DRD SGE3 XCF Reserved[27:0]
0x00 0x04 0x08 0x0C 0x10 0x14 0x18 0x1C 0x20 0x24 0x28 0x2C 0x30 0x34 0x38 0x3C
Table 5-2 Scatter/Gather Table (SGT) 5.3.4 The Port Request Block (PRB) The host builds a PRB to define a command to be executed by the SII3531A. The PRB occupies the first 64 bytes of a command slot in SII3531A RAM. Once a command is issued, the PRB is overwritten in SII3531A RAM as necessary to keep track of command context and execution status. The host should not depend on being able to read the contents of the PRB in slot RAM after command issuance. Upon command execution completion, the PRB area of the command slot may contain status information that can be read by the host, dependent upon the command type. The PRB structure can take several forms, dependent upon the command type that it defines. The PRB contains the following major elements: * * * * A Control Field to indicate the type of PRB and any features to execute. A Protocol Override field used to optionally alter the normal SATA protocol flow. A FIS area that contains the initial FIS to be transmitted to the device upon PRB execution. Up to two Scatter/Gather entries (SGEs) to define areas of host memory that will be used for any data transfer associated with the PRB. For PACKET commands, the first SGE contains the 12 or 16-byte ATAPI command to be transmitted to the device.
Regardless of whether the command is to be issued with the direct or indirect method, the host driver should build the PRB as a structure in host memory. If the command is to be issued using the direct issuance method, the PRB can be copied from host RAM to the appropriate slot in SII3531A RAM. If the command is to be issued using the indirect method, the host driver should write the physical address of the PRB to the command activation register associated with the desired command slot. The PRB must reside on a quadword (64-bit) naturally aligned boundary in host memory. In other words, bits[2:0] of the physical address of the PRB in host memory must be zero.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 24
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
The PRB can take various forms, depending on the type of command being issued. The command types are: * Standard ATA Commands. This includes all the common ATA commands such as READ SECTORS, WRITE SECTORS, READ DMA, WRITE DMA, IDENTIFY DEVICE, SMART, etc. Also included are the queued commands in both legacy and SATA native queue modes. For these commands, the PRB contains the entire "Register - Host to Device" FIS containing the ATA command. By default, the SII3531A decodes the ATA command type and executes the necessary SATA protocol automatically. The host driver may, optionally, execute any desired SATA protocol on a per-command basis. PACKET Commands. ATAPI PACKET commands operate in a similar fashion to the standard ATA commands. The "Register - Host to Device" FIS contains the ATA PACKET command. The 12 or 16-byte ATAPI command is placed in the area normally reserved for the first SGE. The SII3531A does not decode the contents of the 12 or 16-byte ATAPI command, so the host driver indicates the direction of any data transfer associated with the command. Soft Reset A special form of the PRB instructs the SII3531A to transmit a soft reset sequence to a device. The SII3531A creates the necessary "Register - Host to Device" FISes required for the sequence. No SGEs are required for this PRB type. Other than the control field, the only item that needs to be populated is the PMP field, to direct the soft reset sequence to the proper device in the event that a port multiplier is attached. Upon successful command completion, the "Register - Device to Host" FIS is available in the command slot, allowing the host driver to view the device signature. External Command The external command feature allows the host driver to transmit any arbitrary FIS that will not fit in the FIS area of the PRB. This feature is useful in custom applications that have a need to send large FISes or Data FISes in a fashion that does not comply with the defined SATA protocol Interlocked FIS Reception The interlocked FIS feature allows the host driver to receive any desired FIS type directly to a host memory buffer, bypassing all SATA protocol for that FIS type. To use this feature, the host first specifies the FIS type(s) to be interlocked. Then, any number of available command slots can be reserved for the reception of FISes matching the defined type(s).
*
*
*
*
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 25
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.5 The PRB Control Field The Control Field (offset 0x00, bits [15:0]) is used to indicate the type of PRB and features that are desired. For a standard ATA command, this field will normally contain a default value of 0x0000. Table 5-3 describes the bit functions for each bit in the Control Field. Bit 0 1 2 Name control_protocol_override control_retransmit control_external_command Description The Protocol Override Field is to be used instead of the default protocol for this command. Allows retransmission if an error occurs during an external command transmission. The command FIS shall be fetched from host memory. This feature is used to send arbitrary FISes that will not fit in the command FIS area of the PRB. Reserves a command slot to be used to receive an interlocked FIS as described by the port FIS_CONFIG register. Indicates that the packet command associated with this PRB will transfer data from the device to the host. This bit must be set for all packet commands that perform read data transfers. Indicates that the packet command associated with this PRB will transfer data from the host to the device. This bit must be set for all packet commands that perform write data transfers. Setting this bit to one will prevent the SII3531A from issuing a normal successful completion interrupt for this command. Causes the SII3531A to issue a soft reset FIS sequence to the device. Must be zero
3
control_receive
4
control_packet_read
5
control_packet_write
6 7 15:8
control_interrupt_mask control_soft_reset reserved
Table 5-3 Control Field Bit Definitions
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 26
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.6 The PRB Protocol Override Field The Protocol Override Field (offset 0x00, bits [31:16]) is used to specify a protocol behavior other than the default for this PRB. PRBs for which the default protocol is to be used should set this field to 0x0000. The SII3531A will decode the 8-bit ATA command at PRB offset 0x0a and automatically execute the default protocol for the command. In certain cases it might be desirable to specify a non-default protocol to be used, such as with vendor specific device commands. To override the protocol, the host driver must set control_protocol_override (Control Field, bit 0) to one and place the desired protocol in this field. Table 5-4 describes the Protocol Override bit positions. Bit 16 17 18 19 20 Name protocol_packet protocol_legacy_queue protocol_native_queue protocol_read protocol_write Description This command is to be executed as an ATAPI packet command. This command is to be executed as an ATA legacy queued command. This command is to be executed as a SATA native queued command. This command is expected to transfer data from device to host. This command is expected to transfer data from host to device. This command is to be executed with no protocol. After the initial command FIS is successfully sent to the device, completion status will be posted without waiting for additional device transmissions. Must be zero.
21 31:22
protocol_transparent Reserved
Table 5-4 Protocol Override Bit Definitions Note that there is no distinction between DMA and PIO data transfers in the protocol. The SII3531A is a native serial ATA device and relies on the SATA interface protocol to determine the data transfer type between the device and the SII3531A. From the host driver's perspective, all commands, whether PIO or DMA, transfer data through use of scatter/gather entries defined in the PRB and scatter/gather tables.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 27
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.7 Standard ATA Command PRB Structure Table 5-5 shows the layout for standard ATA commands. The Control and protocol override fields must be populated as described above.
31
0
Protocol Override Received Transfer Count Features / Error Dev/Head Features (Exp) Device Control Reserved Command / Status Cyl High Cyl High (Exp) Reserved Reserved C R R R
Control PMP FIS Type Sector Number Sector Num (Exp) Sector Count Reserved
0x00 0x04 0x08 0x0C 0x10 0x14 0x18 0x1C 0x20 0x24 0x28
Cyl Low Cyl Low (Exp) Sector Count (Exp) Reserved
Reserved - Must Be Zero SGE0 Data Address Low SGE0 Data Address High SGE0 Data Count SGE0 TRM SGE0 LNK SGE0 DRD SGE0 XCF Reserved[27:0] SGE1 Data Address Low SGE1 Data Address High SGE1 Data Count SGE1 TRM SGE1 LNK SGE1 DRD SGE1 XCF Reserved[27:0]
0x2C 0x30 0x34 0x38 0x3C
Table 5-5 Port Request Block For Standard ATA Commands The Received Transfer Count field (offset 0x04) is reserved as an input to the SII3531A and should be populated with a value of all zeroes. Upon successful command completion, this field will contain the total number of data bytes received during the command execution. The host driver may use this field to determine the transfer size for commands in which the total transfer size is unknown, such as ATAPI inquiries.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 28
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
The FIS area (offset 0x08 through 0x1f) must be populated with the initial FIS to be sent to the device. This area contains the FIS header and all task file registers to describe the ATA command. Table 5-6 describes the FIS area fields.
Offset
Bit(s) 7:0 FIS Type
Name
11:8 0x08 14:12 15 23:16 31:24 7:0 15:8 23:16 31:24 7:0 0x10 15:8 23:16 31:24 7:0 15:8 23:16 31:24 0x18 31:0
PMP Reserved Command/Device Control Task File Command Features Sector Number (LBA[7:0]) Cylinder Low (LBA[15:8]) Cylinder High (LBA[23:16]) Device/Head (LBA[27:24] for nonextended commands) Sector Number (Exp.) (LBA[31:24] for extended commands) Cylinder Low (Exp.) (LBA[39:32] for extended commands) Cylinder High (Exp.) (LBA[47:40] for extended commands) Features (Exp.) Sector Count Sector Count (Exp.) Reserved Device Control Reserved
Description The FIS type field must be populated with a valid SATA FIS type. In all but special custom cases this value will be 0x27, which defines a "Register - Host to Device" FIS type. 4-bit Port Multiplier Port field that defines the port to which this command will be directed. If no port multiplier is attached, this field should be populated with all zeros Must be zero. This bit must be set to one to indicate that this FIS contains a command. Populate with the desired ATA command type. Populate with the desired features for this ATA command. These fields should be populated with desired command-specific parameters.
0x0c
These fields should be populated with desired command-specific parameters.
0x14
These fields should be populated with desired command-specific parameters. The Reserved field must be zero for standard ATA commands that use the "Register -Host to Device" FIS to initiate a command. This field is reserved and must be zero for standard ATA commands that use the "Register - Host to Device" FIS to initiate a command.
Table 5-6 PRB FIS Area Definition
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 29
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.8 PACKET Command PRB Structure Table 5-7 shows the layout for PACKET commands. The Control and protocol override fields must be populated as described above. The PACKET PRB FIS area is structured the same as a standard ATA command. The FIS area contains the PACKET ATA command. After the initial PACKET command is transmitted, the device will respond with a "PIO Setup" FIS, requesting a 12 or 16-byte ATAPI command. The host driver must populate the area normally used for the first SGE with the desired ATAPI command. The length of the ATAPI command is determined by the value of the packet length bit (Port Control, bit 5). If packet length is 0, 12 bytes will be transmitted. If packet length is one, 16 bytes will be transmitted. The packet length field must be initialized with the packet length value returned by the device in the IDENTIFY PACKET command. Table 5-7 shows a representative 12-byte ATAPI command layout. The highlighted ATAPI packet is an example typical of some commands; other command packets will have different formats within the highlighted bytes.
31
0
Protocol Override Received Transfer Count Features / Error Dev/Head Features (Exp) Device Control Reserved LBA XFR Length (MSB) Reserved Reserved Command / Status Cyl High Cyl High (Exp) Reserved Reserved LBA (MSB) Reserved Reserved Reserved C R R R
Control PMP FIS Type Sector Number Sector Num (Exp) Sector Count Reserved ATAPI opcode LBA XFR Length (LSB) Reserved
0x00 0x04 0x08 0x0C 0x10 0x14 0x18 0x1C 0x20 0x24 0x28 0x2C 0x30 0x34 0x38
Cyl Low Cyl Low (Exp) Sector Count (Exp) Reserved Reserved LBA (LSB) Reserved Reserved
Reserved - Must Be Zero
SGE1 Data Address Low SGE1 Data Address High SGE1Data Count SGE1 TRM SGE1 LNK SGE1 DRD SGE1 XCF Reserved[27:0]
0x3C
Table 5-7 Port Request Block For PACKET Command The SII3531A does not decode the ATAPI command to determine the necessity or direction of any associated data transfer. The host driver must supply this information by setting control_packet_read (control field, bit4) or control_packet_write (control field, bit 5) for any PACKET command that requires data transfer. Failure to set one of these bits for an ATAPI command that requests data transfer will result in an Overrun or Underrun Command Error condition.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 30
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.9 Soft Reset PRB Structure To send a soft reset sequence, the host driver need only fill in the PMP field (offset 0x8, bits[11:8]) and set control_soft_reset (control field, bit 7). The SII3531A will send a soft reset sequence to the device and wait for a "Register - Device to Host" FIS to deliver the device signature and terminate the command. Upon successful command completion, the host may inspect the FIS area of the slot in SII3531A RAM (offset 0x08 through 0x1f) to determine the returned device signature. Please note that a soft reset is executed in the same manner as other PRBs. It will be executed in the order in which it was issued. Port Ready (Port Status, bit 31) must be one in order to issue this command. In Table 5-8, shaded areas depict valid fields in slot RAM following successful command completion. These fields do not need to be supplied as inputs and may be in any state upon command issuance.
31
0
N/A N/A Features / Error Dev/Head Features (Exp) Device Control Command / Status Cyl High Cyl High (Exp) Reserved N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A C R R R
Control (0x0080) PMP FIS Type Sector Number Sector Num (Exp) Sector Count
0x00 0x04 0x08 0x0C 0x10 0x14 0x18 0x0C 0x10 0x14 0x18 0x1C 0x20 0x24 0x28 0x2C 0x30 0x34 0x38 0x3C
Cyl Low Cyl Low (Exp) Sector Count (Exp)
Table 5-8 Port Request Block For Soft Reset Command
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 31
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.10 External Command PRB Structure An external command PRB is indicated by setting control_external_command (control field, bit 2). External commands execute in a manner similar to standard commands except that the initial command FIS is fetched from host memory instead of the PRB FIS area. By default, an external command uses the "transparent" protocol. That is, the command will be terminated immediately following the successful transmission of the external command FIS. If this is not the desired protocol, the host driver can set control_protocol_override (control field, bit 0) and place the desired protocol in the Protocol Override field (offset 0x00, bits [31:16]). The external command FIS length may be any size (up to the 8K SATA limit) and will be automatically padded to a Dword boundary. The SII3531A will frame the FIS, adding SOF, EOF, and CRC. The host memory FIS image must contain the FIS header (FIS Type, PMP, etc.). The PRB PMP field (offset 0x08, bits [11:8]) must be populated to direct the FIS to the desired port multiplier port, or must be zero if no port multiplier is attached. For port multiplier applications, it is important that the PMP field in the host-resident FIS and the PRB match for proper operation. The location of the external command FIS is defined in additional SGEs with the XCF bit (SGE offset 0x0c, bit 28) set to one. Any type of command may be sent using an external command, including commands that have associated data transfers. Data transfer host memory locations are defined in SGEs with the XCF bit (SGE offset 0x0c, bit 28) set to zero. SGEs used to define the external command FIS and SGEs used to define data transfer may be freely mixed in any order. The presence or absence of the XCF bit informs the SII3531A whether an SGE should be used for the current transfer operation.
31
0
Protocol Override Received Transfer Count Reserved PMP
Control Reserved
0x00 0x04 0x08 0x0C 0x10 0x14 0x18
Reserved - Must Be Zero SGE0 Data Address Low SGE0 Data Address High SGE0 Data Count SGE0 TRM SGE0 LNK SGE0 DRD SGE0 XCF Reserved[27:0] SGE1 Data Address Low SGE1 Data Address High SGE1 Data Count SGE1 TRM SGE1 LNK SGE1 DRD SGE1 XCF Reserved[27:0]
0x1C 0x20 0x24 0x28 0x2C 0x30 0x34 0x38 0x3C
Table 5-9 Port Request Block For External Commands
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 32
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.3.11 Interlocked Receive PRB Structure Reserving a command slot to receive an interlocked FIS is indicated by setting control_receive (control field, bit 3). To receive an interlocked FIS into host memory, the host driver first specifies the FIS type(s) to be interlocked by writing the appropriate value to the FIS Configuration register (port registers, offset 0x1028). The PRB is populated with SGEs that define the host memory region(s) that will be used to receive the interlocked FIS. When a FIS of the defined type is received, it will be written to the defined host memory area and the command will be completed. If an error occurs during receipt of the FIS, or the SGEs define an area that is not large enough to contain the entire FIS, the FIS will be rejected with an R_ERR response and the command will not complete. When an interlocked FIS is received without error into a memory region that is large enough to contain it, the command will be successfully completed and the host driver may use the received FIS in any manner. The command slot is then free to be redefined as a receive slot or as any other command type. After successfully receiving an interlocked FIS, the low-level link will be receiving WTRM primitives from the transmitting device, which is expecting a response. By default, the SII3531A waits for the host driver to write a response bit to the port control register. If the host driver writes Interlock Accept (Port Control Set register, bit 12), an R_OK response will be transmitted. If the host driver writes Interlock Reject (Port Control Set register, bit 11), an R_ERR response will be transmitted. The host driver may also elect to set Auto Interlock Accept (Port Control Set register, bit 14) before performing interlocked operations. Setting this bit will cause an R_OK response to be sent for all subsequently received interlocked FISes, without additional intervention from the host driver. It should be noted that in this mode, it is possible to receive one or more additional interlocked FISes before the host driver has had a chance to reserve command slots to receive them. If this occurs, any interlocked FIS that arrives without a reserved slot available will be acknowledged and discarded.
31
0
Protocol Override Received Transfer Count
Control
0x00 0x04 0x08 0x0C 0x10 0x14 0x18
Reserved - Must Be Zero SGE0 Data Address Low SGE0 Data Address High SGE0 Data Count SGE0 TRM SGE0 LNK SGE0 DRD SGE0 XCF Reserved[27:0] SGE1 Data Address Low SGE1 Data Address High SGE1 Data Count SGE1 TRM SGE1 LNK SGE1 DRD SGE1 XCF Reserved[27:0]
0x1C 0x20 0x24 0x28 0x2C 0x30 0x34 0x38 0x3C
Table 5-10 Port Request Block For Receiving Interlocked FIS
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 33
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.4 Operation
5.4.1 Command Issuance Before a command can be executed, it must reside in a slot in SII3531A RAM and the SII3531A must be informed that the PRB is ready to be executed. To accomplish this, the host must issue the command in one of two ways: 1. Indirect Command Issuance The indirect method is the most common and flexible method of issuing commands. With this method, the host builds the PRB in host memory and writes the physical address of the PRB into one of 31 command activation registers, each associated with a command slot. This causes the SII3531A to fetch the PRB from host memory and deposit it in the selected slot of SII3531A RAM. After the command is fetched, the SII3531A automatically informs the execution unit that the command is ready for execution. The host may issue commands through additional command activation registers at any time without regard as to whether the previous PRB has been fetched. The SII3531A will fetch the PRB's in the order requested when the necessary resources are available. Direct Command Issuance The host may write the 64-byte PRB directly into SII3531A slot RAM. The RAM area is defined in the port register map and the host can easily calculate the slot offset to write the PRB. After the PRB is written to RAM, the host informs the execution unit that it is ready to process by writing the slot number into the command execution FIFO register. Please note that when the direct command issue method is used, it is not possible to append scatter/gather entries to the PRB without defining a LNK in one of the PRB resident scatter/gather entries.
2.
5.4.2 Reset and Initialization The SII3531A has a hierarchical reset structure that allows initialization of the entire chip, single port, an attached device, or the internal command queue. In general, asserting a reset at a high level will cause all underlying circuits to be reset. There are five levels of reset and initialization possible. The resets, listed from highest to lowest level, are: 5.4.2.1 PERST# Reset The PERST# reset pin, when asserted, holds the entire chip in a reset state. All configuration, global, and port registers are initialized to their default state. When de-asserted, PCI Express configuration space is programmable, but the global and port register spaces and the port state machines/command queue remain in a reset state until the Global and Port Resets are deasserted through software control. 5.4.2.2 Global Reset The Global Reset (Global Control Register, bit 31), when asserted, initializes all global registers, except PHY Configuration, and all port registers to the default state. All Port Resets are set to one (asserted) while Global Reset is asserted. The Global Reset must be cleared to zero to allow access to the global register space or to release any Port Reset. Software may use the Global Reset to initialize all ports with a single operation. 5.4.2.3 Port Reset Each port contains a Port Reset (Port Control Set/Clear, bit 0) that remains set to one after the Global Reset is cleared to zero. While Port Reset is asserted, all port registers, except Port PHY Configuration, and OOB Bypass (Port Control Set/Clear, bit 25), are initialized to their default state. The port state machines are reset and the command queue is cleared. The Port Reset must be cleared to zero by writing a one to bit zero of the Port Control Clear Register to release the Port Reset condition. Software may assert the port reset condition at any time by writing a one to bit zero of the Port Control Set Register. 5.4.2.4 Device Reset Each port contains a Device Reset (Port Control Set, bit 1) that may be used by software to reset an attached device without affecting the contents of the port registers. Writing a one to bit 1 of Port Control Set causes the execution state machines and pending command queue to be initialized. Then, a COMRESET is transmitted to the attached device. The effect of this sequence is to clear any outstanding commands and reset the attached device. The Device Reset bit is self-clearing. After the reset sequence has completed, the bit will be cleared to zero. 5.4.2.5 Port Initialize Each port contains a Port Initialize (Port Control Set, bit 2) that may be used by software to initialize the port data structures without affecting the contents of the port registers or resetting the device. Writing a one to bit 1 of Port Control Set causes the execution state machines and pending command queue to be initialized. The effect of this sequence is to clear any outstanding commands. The Port Initialize bit is self-clearing. After the initialization sequence has completed, the bit will be cleared to zero.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 34
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
5.4.3 Port Ready Each port contains a Port Ready indicator (Port Status, bit 31) that is cleared to zero by any of the above reset conditions. The Port Ready signal, when one, indicates that the port is ready to execute commands. For all resets except Port Initialize, the Port Ready signal will not be asserted until a PHY ready condition is achieved. When Port Initialize is set, Port Ready will be cleared to zero then set to one after any currently active data transfers or FIS transmission/reception operations have completed and port initialization has completed. 5.4.4 Port Reset Operation Upon release of Port Reset, the low-level power management state machine is enabled and OOB signaling is initiated to the device. The SII3531A starts OOB signaling by transmitting a COMRESET to the device. If the device responds with COMINIT and the OOB sequence is successful, a PHY ready condition will result, indicating that a link has been successfully established and the device may transmit an initial register FIS. At this time, the Port Ready signal will be asserted, indicating that the host driver may issue commands. If the device does not respond within the prescribed time allowed for OOB, the lowlevel power management machine will initiate another OOB sequence after a fixed delay. The period between OOB attempts is approximately 100 milliseconds. Upon receipt of an initial "Register - Device to Host" FIS that clears the task file status BSY state, the port is allowed to transmit commands to the device. 5.4.5 Initialization Sequence The following is an example sequence of events that software might use to initialize the SII3531A and enumerate an attached device or port multiplier. The sequence assumes that the system has powered up, the PERST# Reset has been de-asserted, and the system has enumerated the PCI Express bus. Configuration space, including the Base Address Registers, has been initialized. It is now necessary to enable each port and determine the device type, if any, that is attached to each port. 1. 2. Remove the Global Reset by writing 0x00000000 to the Global Control Register (Global offset 0x40). For each Port to be initialized: a. Clear Port Reset by writing one to Port Reset of Port Control Clear Register (Port offset (port*0x2000)+0x1004, bit 0). b. If 32-bit platform and 32-bit activation is desired, write one to 32-bit Activation of Port Control Set Register (Port offset (port*0x2000)+0x1000, bit 10). c. To enable interrupts for command completion and command errors, write 0x00000003 to the Port Interrupt Enable Set Register (Port offset (port*0x2000)+0x1010). d. To determine if device is present, poll the SStatus Register (Port offset (port*0x2000)+0x1f04) for a PHYRDY condition indicated by the DET field (bits[3:0]) having a value of 0x3. e. Wait until Port Ready in Port Status Register (Port offset (port*0x2000)+0x1000, bit 31) is one. If desired, an interrupt may be armed in the Port Interrupt Set Register (bit 2). Any change in Port Ready state will assert an interrupt. f. If the software supports port multipliers, build a Soft Reset PRB in host memory. Set the PMP field to 0x0f to direct the command to the control port of a port multiplier. Issue the command to any available slot. If the software does not support port multipliers, skip this step, as sending this command will cause the port multiplier to disable legacy access to device 0. g. Upon successful command completion of the soft reset command, read the device signature from the command slot (Port offset (port*0x2000)+(slot*0x80)+0x14(LSB), 0x0c, 0x0d, 0x0e(MSB)). h. If the signature is 0x96690101, then the attached device is a Port Multiplier. Perform the Port Multiplier Enumeration procedure: i. Enable Port Multiplier context switching by writing a one to PM Enable in the Port Control Set Register (Port offset (port*0x2000)+0x1000, bit 13). ii. Read the Port Multiplier GSCR[2] register by issuing a Read Port Multiplier command to the control port. This register contains the number of device ports on the Port Multiplier. iii. For each Port Multiplier Device Port: 1. Enable the PHY by writing a 1, then a 0 to the Scontrol Register (PSCR[2]) DET field. Issue a Port Multiplier Write command for each of these operations. 2. Wait for a PHYRDY condition in the port by polling the SStatus Register (PSCR[0]) . 3. Clear the X-bit and all other error bits in the Serror Register (PSCR[1]) by writing all ones to the register with a Write Port Multiplier command. The port is now ready for operation. 4. Issue a Soft Reset command with the PMP field set to the appropriate port. This will return a device signature for the attached device. 5. Issue the appropriate Identify Device or Identify Packet Device command and any associated Set Features, Set Write Multiple commands as may be necessary to initialize the device. i. If the signature is 0xeb140101, then the attached device is an ATAPI PACKET device. SiI-DS-0208-C 35
(c) 2006 Silicon Image, Inc.
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
i. Issue Identify Packet Device command to get device specific parameters ii. While drive is not ready and timeout has not expired: 1. Issue Test unit ready PACKET command 2. If the command completes successfully, drive is ready 3. Else, if command error indicates Device error condition due to drive not ready, write Initialize Port to the Port Control Register (port*0x2000)+0x1000, bit 2) 4. Wait until Port Ready in Port Status Register (Port offset (port*0x2000)+0x1000, bit 31) is one. If desired, an interrupt may be armed in the Port Interrupt Set Register (bit 2). Any change in Port Ready state will assert an interrupt. iii. Drive is ready for use. Issue appropriate Set Features, Set Read Multiple commands as needed. If the signature is 0x00000101, then the attached device is a disk drive. i. Issue Identify Device command to get device specific parameters ii. Drive is ready for use. Issue appropriate Set Features, Set Read Multiple commands as needed.
j.
5.4.6 Interrupts and Command Completion Each port of the SII3531A produces a single interrupt, which is an accumulation of various possible interrupt events. In its default mode, the SII3531A combines the interrupts from the ports into a single interrupt that may be used either for INTA emulation or for a Message Signaled Interrupt. In certain embedded environments, it might be desirable for each port to generate an independent interrupt. Software may configure each port to direct its interrupt to one of four emulated interrupts. The Interrupt Steering field in the Port Interrupt Enable Set/Clear register (Port offset 0x1010/1014, bit [31:30]) is used to direct the port interrupt. By default, this field is set to a value of zero, indicating that the interrupt is directed to INTA. The register may be set to one of four values: Interrupt Steering Value 0 1 2 3 Interrupt INTA INTB INTC INTD
Table 5-11 Interrupt Steering 5.4.7 Interrupt Sources Figure 5-3 on page 38 depicts a logical representation of the interrupt routing for the SII3531A. For Each port, the possible interrupt causes are: * Command Completion. Indicates that one or more commands have successfully completed. This interrupt is cleared in one of two ways, dependent upon the state of Interrupt NCoR (Port Control Register, bit 3). Reading the port Slot Status Register will clear this interrupt condition if Interrupt NCoR is zero. Writing a one to bit 0 or 16 of the port Interrupt Status Register will clear this interrupt condition if Interrupt NCoR is one. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. Command Error. Indicates that a command did not complete successfully. The port Command Error register will contain an error code indicating the actual cause of failure. When this bit is set, Port Ready will be set to zero and no additional commands will be processed until the port is initialized by one of the reset methods and Port Ready is asserted. Writing a one to bit 1 or 17 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. Port Ready. Indicates that the Port Ready state has changed from zero to one. Writing a one to bit 2 or 18 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. Power Management Change. Indicates that the port power management state has been modified. The current power management state can be determined by reading the port SStatus Register. Writing a one to bit 3 or 19 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. PHY Ready Change. Indicates that the PHY state has changed from Not Ready to Ready or from Ready to Not Ready. The current PHY state can be determined by reading the port SStatus Register. Writing a one to bit 4 or 20 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. COMWAKE Received. Indicates that a COMWAKE OOB signal has been decoded on the receiver. Writing a one to bit 5 or 21 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register.
*
* *
*
*
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 36
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
* * Unrecognized FIS. Indicates that the F-bit has been set in the Serror Diag field. Writing a one to bit 6 or 22 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. Device Exchanged. Indicates that the X-bit has been set in the Serror Diag field. The X-bit is set upon receipt of a COMINIT from the device. Writing a one to bit 7 or 23 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register. 8b/10b Decode Error Threshold Exceeded. Indicates that the 8b/10b Decode Error counter has exceeded the programmed non-zero threshold value. Writing any value to the port 8b/10b Decode Error Counter Register or writing a one to bit 8 or 24 of the Interrupt Status Clear Register will clear this interrupt condition. This interrupt is enabled by writing a non-zero value to the threshold field (bit[31:16]) of the port 8b/10b Decode Error Counter Register. Writing a zero the threshold field will disable this interrupt. CRC Error Threshold Exceeded. Indicates that the CRC Error counter has exceeded the programmed non-zero threshold value. Writing any value to the port CRC Error Counter Register or writing a one to bit 9 or 25 of the Interrupt Status Clear Register will clear this interrupt condition. This interrupt is enabled by writing a non-zero value to the threshold field (bit[31:16]) of the port CRC Error Counter Register. Writing a zero to the threshold field will disable this interrupt. Handshake Error Threshold Exceeded. Indicates that the Handshake Error counter has exceeded the programmed non-zero threshold value. A handshake error occurs when an R_ERR primitive is received. Writing any value to the port Handshake Error Counter Register or writing a one to bit 10 or 26 of the Interrupt Status Clear Register will clear this interrupt condition. This interrupt is enabled by writing a non-zero value to the threshold field (bit[31:16]) of the port Handshake Error Counter Register. Writing a zero to the threshold field will disable this interrupt. SDB Notify. Indicates that a "Set Device Bits" FIS has been received with the N-bit set in the control field. ATAPI and Port Multiplier devices optionally use this feature to signal the host that an event has occurred that requires further scrutiny. Writing a one to bit 11 or 27 of the port Interrupt Status Register clears this interrupt condition. This interrupt is enabled or disabled with the corresponding bit in the port Interrupt Enable Set/Clear Register.
*
*
*
*
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 37
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Global_Int_En_0
Control_Interrupt_Mask Cmd_Complete_Int_En Exec_Cmd_Complete
S
Q Command Success
Int_Select_0
Port_0_IntA
Port_Interrupt_NCoR Read_Slot_Status Cmd_Completion_W1C
R
Reset
CLR
Q
Int_Select_1
Port_0_IntB
Int_Select_2 Cmd_Err_Int_En Exec_Cmd_Err Command Error Int_Select_3
Port_0_IntC
S
Q
Port_0_IntD
Command_Err_W 1C
R
CLR
Q
Reset Port_Ready_Int_En Port_Ready_Assertion
S
Q
Port_Ready_Int W1C
R
CLR
Q
Port_0_Global_Int_Status
Reset PM_Change_Int_En PM_Change PhyRdy_Change_Int_En PhyRdy_Change ComWake_Int_En ComWake UnRecFis_Int_En UnrecFis DevXchg_Int_En DevXchg 8b/10b_Error_Threshold CRC_Error_Threshold Hshk_Error_Threshold SDB_Notify_Int_En SDB_Notify Attention (Slot_Status[31])
Port 0
Global_Int_En_1 Port_0_IntB Port_1_IntB Port_1_IntA Port_1_IntB Port_1_IntC Port_1_IntD Port_1_Global_Int_Status Port_0_IntC Port_1_IntC Port_0_IntD Port_1_IntD Port_0_IntA Port_1_IntA I2C_Interrupt I2C_Int_Enable INTC INTA INTD
INTB
ULA
PCI_CFG_INT_DIS
Port 1
Figure 5-3 SII3531A Interrupt Map
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 38
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Interrupt Cause Interrupt Status Bit Masked Raw To Clear: If Interrupt W1C == 0 Read Slot Status If Interrupt W1C == 1 Write 1 to Port Interrupt Status bit 0 or 16, OR, write one to desired port bit(s) in Global Interrupt Status. Write 1 to Interrupt Status bit 1 or 17 Write 1 to Interrupt Status bit 2 or 18 Write 1 to Interrupt Status bit 3 or 19 Write 1 to Interrupt Status bit 4 or 20 Write 1 to Interrupt Status bit 5 or 21 Write 1 to Interrupt Status bit 6 or 22 Write 1 to Interrupt Status bit 7 or 23 Write 1 to Interrupt Status bit 8 or 24 OR Write any value to 8b/10b Decode Error Counter bits[15:0] Write 1 to Interrupt Status bit 9 or 25 OR Write any value to CRC Error Counter bits[15:0] Write 1 to Interrupt Status bit 10 or 26 OR Write any value to Handshake Error Counter bits[15:0] Write 1 to Interrupt Status bit 11 or 27 Write 1 to Interrupt Enable Clear bit 0 OR Write 1 to control_interrupt_mask in PRB Control field To Enable: To Disable:
Command Complete
0
16
Write 1 to Interrupt Enable Set bit 0
Command Error Port Ready Power Management Change PHY Ready Change COMWAKE Received Unrecognized FIS Received Device Exchanged
1 2 3 4 5 6 7
17 18 19 20 21 22 23
Write 1 to Interrupt Enable Set bit 1 Write 1 to Interrupt Enable Set bit 2 Write 1 to Interrupt Enable Set bit 3 Write 1 to Interrupt Enable Set bit 4 Write 1 to Interrupt Enable Set bit 5 Write 1 to Interrupt Enable Set bit 6 Write 1 to Interrupt Enable Set bit 7 Write non-zero value to 8b/10b Decode Error Counter bits[31:16]
Write 1 to Interrupt Enable Clear bit 1 Write 1 to Interrupt Enable Clear bit 2 Write 1 to Interrupt Enable Clear bit 3 Write 1 to Interrupt Enable Clear bit 4 Write 1 to Interrupt Enable Clear bit 5 Write 1 to Interrupt Enable Clear bit 6 Write 1 to Interrupt Enable Clear bit 7 Write zero to 8b/10b Decode Error Counter bits[31:16]
8b/10b Decode Error Threshold
8
24
CRC Error Threshold
9
25
Write non-zero value to CRC Error Counter bits[31:16]
Write zero to CRC Error Counter bits[31:16]
Handshake Error Threshold
10
26
Write non-zero value to Handshake Error Counter bits[31:16]
Write zero to Handshake Error Counter bits[31:16]
Set Device Bits Notification Received
11
27
Write 1 to Interrupt Enable Set bit 11
Write 1 to Interrupt Enable Clear bit 11
Table 5-12 Port Interrupt Causes And Control 5.4.8 Command Completion - The Slot Status Register The Slot Status register is designed such that an interrupt service routine can determine the successful completion state of outstanding commands, dismiss the command completion interrupt, and determine if any other enabled interrupt events are pending in a port with a single read of the Slot Status register. The Slot Status Register (Port offset 0x1800 or Global offset 0x00 + (port * 4)) bits 0 through 30 reflect the status of each of the 31 command slots in a port. When a PRB is issued to a command slot, the corresponding bit in the Slot Status register is set to one, indicating that the command is in progress. When a command is successfully completed, the corresponding command slot bit is cleared in the Slot Status register. The host driver may read the Slot Status register at any time to determine the activity state of any issued commands.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 39
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
By default, a successfully completed command will set the command complete bit in the port Interrupt Status register. If the Command Complete interrupt is enabled, an interrupt will be asserted simultaneously. The host driver may optionally set control_interrupt_mask in the PRB Control field to prevent the command complete bit from being set on a per-command basis. This is useful when the host issues a series of commands and wants to be interrupted only after a selected command completes. The command complete bit and associated interrupt will be cleared when the Slot Status register is read, unless the host driver has set Interrupt No Clear on Read (Port Control Set/Clear register, bit 3). If Interrupt No Clear on Read is set to one, the host driver must write a one to the Command Complete bit in the Interrupt Status Clear register in order to clear the command complete bit and associated interrupt. 5.4.9 The Attention Bit Bit 31 of the Slot Status register is the Attention bit. When set to one, it indicates that an enabled interrupt source, other than command completion, is asserted. It is possible that the Slot Status register can indicate an Attention condition while also showing that commands have successfully completed in bits 0 through 30. The interrupt service routine should always postprocess any completed commands in addition to servicing a possible Attention condition. The Attention bit is set only for interrupt conditions that have been enabled as described in the Interrupt Sources section. The Attention bit will remain set to one in the Slot Status register until all enabled interrupt conditions have been cleared. 5.4.10 Interrupt Service Procedure The SII3531A is designed to efficiently service interrupt events with minimal host overhead. There are a number of methods that the host may use to quickly determine the interrupt cause within any of the ports. The Global Interrupt Status Register (Global offset 0x44) may be read to determine which ports are interrupting. Then, the Slot Status Register for the interrupting ports may be read to determine the interrupt cause. Alternately, all port Slot Status Registers may be read in a single burst operation from the Global Register space starting at Global offset 0x00. If Interrupt No Clear on Read (port Control Register, Bit 3) is zero, any command complete interrupt will be cleared when the Slot Status registers are read. The host driver should then compare the outstanding command status in bits 0 through 30 to its internal copy of outstanding commands to determine which, if any, commands have successfully completed. Once the successful command completions have been noted, the host should check the Attention bit (bit 31) to determine if any other enabled interrupt events are pending on the port. If the Attention bit is one, the host should read the port Interrupt Status Register (Port offset (port*0x2000)+0x1008) to ascertain the cause for the Attention condition. Once the Attention condition has been resolved and cleared, normal processing may continue. 5.4.11 Interrupt No Clear on Read By default, the Command Completion interrupt condition is cleared when the port Slot Status Register is read. In some cases, such as debug environments, clearing of the Command Completion interrupt might not be the desired effect of reading the Slot Status Register. In these cases, the host driver should set the Interrupt No Clear on Read bit (bit 3) in the port Control Register. When this bit is set, the host must clear the Command Completion interrupt by one of the following methods: 1. 2. Write a one to the corresponding port interrupt status bit(s) in the Global Interrupt Status Register (Global offset 0x44). Or, Write a one to bit 0 or bit 16 of the port Interrupt Status Register (Port offset (port*0x2000)+ 0x1008).
Method 1 allows Command Complete interrupts for multiple ports to be cleared in a single write operation. Method 2 will clear Command Complete only for the corresponding port. 5.4.12 Error Processing When an error occurs during command processing, the SII3531A records the error condition and halts execution until the host driver is able to restore normal operation. The SII3531A does not attempt to automatically recover from error conditions. Rather, it provides the host with the necessary information to handle the error condition. Errors that occur during command execution cause the Command Error bit to be set to one in the port Interrupt Status Register (Port offset (port*0x2000)+ 0x1008) and an error code to be placed in the port Command Error Register (Port offset (port*0x2000)+ 0x1024). Please see section (xxx- Port Command Error register) for a complete list of possible error codes. Execution is then halted. Port Ready (Port Status Register, bit 31) will be cleared to zero. Only the port with the error condition is halted. All other ports will continue to process normally. If the Command Error interrupt is enabled, an interrupt is asserted and the Attention bit is asserted in the port Slot Status Register. The corresponding Slot Status bit for the command in error will NOT be cleared to zero, since the command did not complete successfully. If only non-queued commands are outstanding, the slot number for the command in error is available in the Port Status Register, bits[20:16]. The host may use this information to ascertain which outstanding command caused the error condition.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 40
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
To recover from a Command Error condition, it is necessary to initialize the port by one of the Port Reset methods described in section 5.4.2 (Reset and Initialization). It might not be necessary to reset the device in all error cases. In fact, to properly recover from native queued error conditions, it may be necessary to send additional commands to the device in error to obtain additional error information. At the minimum, it will be necessary to assert a Port Initialize and wait for Port Ready before additional commands may be issued. Errors may be grouped into three categories to determine the proper recovery action: * Recoverable errors. Error codes 1 and 2 are device specific errors. These errors occur when the device returns an error bit in the final register FIS or in a Set Device Bits FIS. Depending upon the severity of the error type reported by the device, it might not be necessary to reset the device. If the error code is 1, the register FIS received from the device is available in the command slot PRB. The host may determine the error reported by the device by examining the error register field of this structure. Please see section 5.4.13for more information regarding error recovery procedures. Locally detected data errors. Error code 3 is a unique error type. It indicates that the SII3531A detected an error during command execution but the device failed to report the error upon command completion. For non-queued commands, this error type may be treated the same as a recoverable error. If queued commands are outstanding, the device must be reset since it is necessary to make sure that all queued commands are flushed from the device upon an error condition. Since the device did not report an error, it is unlikely that the queue has been flushed in the device. Fatal Errors. All other error codes indicate that an error condition has occurred that requires both the device and the internal operational state of the SII3531A to be reset. The most common method to perform this function is to issue a
*
*
5.4.13 Error recovery procedures When a device returns error status for an outstanding command, the SII3531A will halt command processing, post an error type of 1 or 2 in the Port Command Error register, set the command error bit in the interrupt status register and, if enabled, assert an interrupt to the host. The host driver may wish to attempt error recovery without resetting the device that issued the error. Note that error recovery procedures should only be attempted for error types 1 and 2. Error type 3 is also recoverable if no queued commands are outstanding. It is recommended that all other error types result in a reset of the affected device(s). If the device in error is directly attached to the SII3531A device port, the host may simply issue a Port Initialize by setting bit 2 in the Port Control Set register and waiting for a Port Ready condition. The host may then re-issue any commands that were outstanding when the error occurred. If native queued commands were outstanding, the host should issue a READ LOG EXTENDED for Log Page 10h to determine the details of the error condition. Refer to the Serial ATA II specification for further details on error handling with native queuing. If the device in error is attached to a port multiplier, it is necessary for the host driver to wait until all outstanding commands to other devices attached to the port multiplier have completed before issuing the Port Initialize function. This is accomplished through a series of steps: 1. The host driver must note the PM port number for the device in error by extracting the PMP field (bit[8:5]) from the Port Context Register (port offset 0x1e04). The PMP field contains the PM port number for the device in error. It is then necessary to determine if any commands are outstanding for non-error devices. If there are no commands outstanding for non-error devices, the host driver may simply proceed to step 4 to issue a Port Initialize and wait for a Port Ready condition before reissuing commands. If commands are outstanding to non-error devices, the host should set the Port Resume bit (bit 6) in the Port Control Set Register. Setting this bit will cause the following actions: a. Force a Device Busy condition for the currently selected PM port (the port to which the device in error is attached) so that no additional issued commands will be sent to the device in error. b. Continue processing of commands that have been issued. The host driver must monitor command completion progress and determine when all commands for non-error devices have completed. Please note that the Port Slot Status register will still have a bit set for each outstanding command on the device in error. These bits will not be cleared and the host must ignore them while waiting for command completion on non-error devices. If another recoverable error occurs while waiting for commands to complete, the host driver must follow the same recovery steps for the new device in error, starting with step 1 above. It is possible to have multiple devices in an error recovery state concurrently. When the host driver has detected that all commands for non-error devices have completed, it must perform the following steps. a. Clear Port Resume (Port Control Clear Register, Bit 6). b. Clear bit[16:13] in the Port Device Status Register for the device(s) in error ((port*0x2000) + 0xf80 + (PM port of device in error * 8)). This action clears the device_busy, native_queue, legacy_queue, and service_pending bits to ready the device for further command processing.
2.
3.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 41
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Write zeroes (0x00000000) to the Port Device QActive Register for the device(s) in error ((port*0x2000) + 0xf84 + (PM port of device in error * 8)). This action ensures that all queued command context is removed before re-issuing commands. d. Issue a Port Initialize and wait for Port Ready condition. The host driver may now resume normal command processing. The host driver must determine which commands need to be re-issued to the device in error. Note that if native queued commands were outstanding to the device in error, the host must issue a READ LOG EXTENDED command to clear the pending error condition and determine the tag number (slot number) of the command in error before resuming command processing. c.
4.
Note: It is a good idea to clear Port Resume (Port Control Clear Register, Bit 6) whenever a Port Initialize or Port Device Reset is issued. This ensures that the Port Resume bit is always cleared when starting normal processing in the event that an abnormal exit is taken from the error recovery procedure.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 42
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6 Register Definitions
This section describes the registers within the SII3531A.
6.1 PCI Configuration Space
The PCI Configuration Space registers define the operation of the SII3531A on the PCI Express bus. Address Offset 00H 04H 08H 0CH 10H 14H 18H 1CH 20H 24H 28H 2CH 30H 34H 38H 3CH 40H 44H 48H 4CH 50H 54H 58H 5CH 60H 64H 68H 6CH 70H 74H 78H 7CH 80H 84H-EFH F0H-FFH 100H 104H 108H 10CH 110H 114H 118H 11CH-12BH Register Name Device ID PCI Status PCI Class Code Header Type Vendor ID PCI Command Revision ID Latency Timer Cache Line Size
BIST
Base Address Register 0 Base Address Register 1 Base Address Register 2 Reserved Reserved Subsystem ID Subsystem Vendor ID Reserved Reserved Capabilities Ptr Reserved Max Latency Min Grant Interrupt Pin Interrupt Line Reserved Reserved Reserved Hdr Wr Ena Reserved Reserved Power Management Capabilities Next Capability Pwr Mgt Cap ID Data Reserved Control and Status Message Control Next Capability MSI Cap ID Message Address Message Data Reserved PCI Express Capabilities Register Next Capability PCI Exp Cap ID Device Capabilities Device Status Device Control Link Capabilities Link Status Link Control Reserved Indirect Access Advanced Error Reporting Capability Uncorrectable Error Status Uncorrectable Error Mask Uncorrectable Error Severity Correctable Error Status Correctable Error Mask Advanced Error Capabilities and Control Header Log Table 6-1 SII3531A PCI Configuration Space Reserved
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 43
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.1 Device ID - Vendor ID Address Offset: 00H Access Type: Read /Write Reset Value: 0x3531_1095
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Device ID Vendor ID
This register defines the Device ID and Vendor ID associated with the SII3531A. The register bits are defined below. * Bit [31:16]: Device ID (R/W) - Device ID. The value in this bit field is one of the following: * the default value of 0x3531 to identify the device as a Silicon Image SII3531A. * system programmed value; if bit 0 of the Configuration register (48H) is set, the Device ID is system programmable. Bit [15:00]: Vendor ID (R) - Vendor ID. This field defaults to 0x1095 to identify the vendor as Silicon Image.
*
6.1.2 PCI Status - PCI Command Address Offset: 04H Access Type: Read/Write/Write-One-to-Clear Reset Value: 0x0010_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Capabilities List Memory Space Par Error Resp Rcvd M Abort Det M Par Err SERR Enable Rcvd T Abort Sig T Abort Bus Master Sig Sys Err Det Par Err Int Disable Int Status Reserved Reserved Reserved Reserved Reserved IO Space
Reserved
This register defines the various control functions associated with the PCI bus. The register bits are defined below. * * * * * * * * * * * * * * * Bit 31: Det Par Err (R/W1C) - Detected Parity Error. Bit 30: Sig Sys Err (R/W1C) - Signaled System Error. Bit 29: Rcvd M Abort (R/W1C) - Received Master Abort. Bit 28: Rcvd T Abort (R/W1C) - Received Target Abort. Bit 27: Sig T Abort (R/W1C) - Signaled Target Abort. Bit 24: Det M Par Err (R/W1C) - Detected Master Data Parity Error. Bit 20: Capabilities List (R) - PCI Capabilities List. This bit is hardwired to 1 to indicate that the SII3531A implements Capabilities registers for Power Management, PCI-X, and Message Signaled Interrupt. Bit [19]: Interrupt Status (R). Bit [26:25,23:21,18:11,9,7,5:3]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [10]: Interrupt Disable (R/W). Bit 08: SERR Enable (R/W) - SERR Enable. Bit 06: Par Error Resp (R/W) - Parity Error Response Enable. Bit 02: Bus Master (R/W) - Bus Master Enable. This bit set enables the SII3531A to act as PCI bus master, i.e., issue Memory Requests. Bit 01: Memory Space (R/W) - Memory Space Enable. This bit set enables the SII3531A to respond to memory space accesses. Bit 00: I/O Space (R/W) - I/O Space Enable. This bit set enables the SII3531A to respond to I/O space accesses.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 44
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.3 PCI Class Code - Revision ID Address Offset: 08H Access Type: Read/Write Reset Value: 0x0180_0001
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
PCI Class Code Revision ID
This register defines the various control functions associated with the PCI bus. The register bits are defined below. * Bit [31:08]: PCI Class Code (R) - PCI Class Code. This value in this bit field is one of the following: * the default value of 018000h for Mass Storage Class. * system programmed value; if bit 0 of the Configuration register (48H) is set the PCI Class Code is system programmable. Bit [07:00]: Revision ID (R) - Chip Revision ID. This bit field is hardwired to indicate the revision level of the chip design; revision 01H is defined by this specification.
*
6.1.4 BIST - Header Type - Latency Timer - Cache Line Size Address Offset: 0CH Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
BIST Header Type Latency Timer Cache Line Size
This register defines the various control functions associated with the PCI bus. The register bits are defined below. * * * * Bit [31:24]: Bit [23:16]: Bit [15:08]: Bit [07:00]: SII3531A. BIST (R). This bit field is hardwired to 00H. Header Type (R). This bit field is hardwired to 00H. Latency Timer (R). This field is hardwired to 00H. Cache Line Size (R/W). This bit field is Read/Write for legacy purposes. The field is not used by the
6.1.5 Base Address Register 0 Address Offset: 10H Access Type: Read/Write Reset Value: 0x0000_0000_0000_0004
63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
Base Address Register 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Base Address Register 0 0000100
This register defines the addressing of the Global Registers within the SII3531A. The register bits are defined below. * * Bit [63:07]: Base Address Register 0 (R/W). This register defines the base address for the 128-byte Memory Space containing the Global Registers. Bit [06:00]: (R). This bit field is hardwired to 0000100B to indicate a 64-bit base address.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 45
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.6 Base Address Register 1 Address Offset: 18H Access Type: Read/Write Reset Value: 0x0000_0000_0000_0004
63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
Base Address Register 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Base Address Register 1 0 0000 0000 0100
This register defines the addressing of the Port Registers and LRAM within the SII3531A. The register bits are defined below. * * Bit [63:13]: Base Address Register 1 (R/W). This register defines the base address for the 16Kbyte Memory Space containing the Port Registers. Bit [12:00]: (R). This bit field is hardwired to 0004H to indicate a 64-bit base address.
6.1.7 Base Address Register 2 Address Offset: 20H Access Type: Read/Write Reset Value: 0x0000_0001
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Base Address Register 2 000 0001
This register defines the addressing of the Indirect I/O registers within the SII3531A. The register bits are defined below. * * Bit [31:04]: Base Address Register 2 (R/W). This register defines the base address for the 128-byte I/O Space. Bit [03:00]: (R). This bit field is hardwired to 000_0001B.
6.1.8 Subsystem ID - Subsystem Vendor ID Address Offset: 2CH Access Type: Read/Write Reset Value: 0x3531_1095
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Subsystem ID Subsystem Vendor ID
This register defines the Subsystem ID fields associated with the PCI bus. The register bits are defined below. * Bit [31:16]: Subsystem ID (R/W) - Subsystem ID. The value in this bit field is one of the following: * the default value of 0x3531 * system programmed value; if bit 0 of the Configuration register (48H) is set the Subsystem ID is system programmable. * Bit [15:00]: Subsystem Vendor ID (R/W) - Subsystem Vendor ID. The value in this bit field is one of the following: * the default value of 0x1095 * system programmed value; if bit 0 of the Configuration register (48H) is set the Subsystem Vendor ID is system programmable.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 46
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.9 Capabilities Pointer Address Offset: 34H Access Type: Read Reset Value: 0x0000_0054
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Capabilities Pointer
This register defines the link to a list of new capabilities associated with the PCI bus. The register bits are defined below. * * Bit [31:08]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [07:00]: Capabilities Pointer (R) - Capabilities Pointer. This bit field contains 54H, the address for the 1st Capabilities register set, the PCI Power Management Capability.
6.1.10 Max Latency - Min Grant - Interrupt Pin - Interrupt Line Address Offset: 3CH Access Type: Read/Write Reset Value: 0x0000_0100
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Max Latency Min Grant Interrupt Pin Interrupt Line
This register defines various control functions associated with the PCI bus. The register bits are defined below. * * * * Bit [31:24]: Max Latency (R) - Maximum Latency. This bit field is hardwired to 00H. Bit [23:16]: Min Grant (R) - Minimum Grant. This bit field is hardwired to 00H. Bit [15:08]: Interrupt Pin (R) - Interrupt Pin Used. This bit field is hardwired to 01H to indicate that the SII3531A uses the INTA interrupt. The INTB, INTC, and INTD interrupts may be used by enabling them in the Port Interrupt Enable registers; this use is outside the PCI specification. Bit [07:00]: Interrupt Line (R/W) - Interrupt Line. This bit field is used by the system to indicate interrupt line routing information. The SII3531A does not use this information.
6.1.11 Header Write Enable Address Offset: 48H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Ind Acc Ena Hdr Wr Ena
Reserved
* * *
Bit [31:02]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [01]: Ind Acc Ena (R) - Indirect Access Enable. This bit enables the Indirect Access registers at offset F0HFFH. Bit [00]: Hdr Wr Ena (R) - Header Write Enable. This bit enables writing to registers defined as read-only by the PCI specification. This bit is required to meet PCI compliance testing that expects certain registers to be read-only. This bit is set to enable write access to the following registers in the PCI Configuration Header: Device ID (03-02H), PCI Class Code (09-0BH), Subsystem Vendor ID (2D-2CH), and Subsystem ID (2F-2EH).
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 47
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.12 Power Management Capability Address Offset: 54H Access Type: Read Only Reset Value: 0x0622_5C01
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
PPM D2 Support PPM D1 Support Dev Special Init PME Clock Reserved
PME Support
Auxiliary Current
PPM Rev
Next Capability Pointer
Capability ID
This register defines the power management capabilities associated with the PCI bus. The register bits are defined below. * * * * * * * * * * Bit [31:27]: PME Support (R) - Power Management Event Support. This bit field is hardwired to 00H; the SII3531A does not support PME. Bit [26]: PPM D2 Support (R) - PCI Power Management D2 Support. This bit is hardwired to 1. Bit [25]: PPM D1 Support (R) - PCI Power Management D1 Support. This bit is hardwired to 1. Bit [24:22]: Auxiliary Current (R) - Auxiliary Current. This bit field is hardwired to 000B. Bit [21]: Dev Special Init (R) - Device Special Initialization. This bit is hardwired to 1 to indicate that the SII3531A requires special initialization. Bit [20]: Reserved (R). This bit is reserved and returns zero on a read. Bit [19]: PME Clock (R) - Power Management Event Clock. This bit is hardwired to 0. Bit [18:16]: PPM Rev (R) - PCI Power Management Revision. This bit field is hardwired to 010B to indicate compliance with the PCI Power Management Interface Specification revision 1.1. Bit [15:08]: Next Capability Pointer (R) - PCI Next Capability Pointer. This bit field is hardwired to 5CH to point to the 2nd Capabilities register, the MSI Capability. Bit [07:00]: Capability ID (R) - PCI Capability ID. This bit field is hardwired to 01H to indicate that this is a PCI Power Management Capability.
6.1.13 Power Management Control + Status Address Offset: 58H Access Type: Read/Write Reset Value: 0x0800_2000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
PPM Power State PPM Data Scale PME Status PME Ena
PPM Data
Reserved
PPM Data Sel
Reserved
This register defines the power management capabilities associated with the PCI bus. The register bits are defined below. * * * * * * * * Bit [31:24]: PPM Data (R) - PCI Power Management Data. This bit field is hardwired to 0x08 to indicate a power consumption of 800 milliwatts. Bit [23:16]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [15]: PME Status (R) - PME Status. This bit is hardwired to 0. The SII3531A does not support PME. Bit [14:13]: PPM Data Scale (R) - PCI Power Management Data Scale. This bit field is hardwired to 01B to indicate a scaling factor of 100 milliwatts. Bit [12:09]: PPM Data Sel (R/W) - PCI Power Management Data Select. This bit field is set by the system to indicate which data field is to be reported through the PPM Data bits (although current implementation hardwires the PPM Data to indicate 1.2 Watt). Bit [08]: PME Ena (R) - PME Enable. This bit is hardwired to 0. The SII3531A does not support PME. Bit [07:02]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [01:00]: PPM Power State (R/W) - PCI Power Management Power State. This bit field is set by the system to dictate the current Power State: 00 = D0 (Normal Operation), 01 = D1, 10 = D2, and 11 = D3 (Hot).
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 48
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.14 MSI Capability Address Offset: 5CH Access Type: Read/Write Reset Value: 0x0080_7005
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Multiple Message Enable Multiple Message Capable MSI Enable 64-bit Addr
Reserved
Next Capability Pointer
Capability ID
This register defines the MSI Capability Message Control. The register bits are defined below. * * * * * * * Bit [31:24]: Reserved (R) - This bit field is reserved and returns zeros on a read. Bit [23]: 64-bit Addr (R) - 64-bit Address Capable. This bit is hardwired to 1. Bit [22:20]: Multiple Message Enable (R/W) - This bit field defaults to 000B. Bit [19:17]: Multiple Message Capable (R) - This bit field is hardwired to 000B. Bit [16]: MSI Enable (R/W) - This bit is set to enable Message Signaled Interrupts. Bit [15:08]: Next Capability Pointer (R) -Next Capability Pointer. This bit field is hardwired to 70H to point to the 3rd Capabilities register, the PCI Express Capability. Bit [07:00]: Capability ID (R) - This bit field is hardwired to 05H to indicate that this is a MSI Capability.
6.1.15 Message Address Address Offset: 60H-67H Access Type: Read/Write Reset Value: 0x0000_0000_0000_0000
63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
Message Address Upper
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Message Address 00
This register specifies the memory address for an MSI memory write transaction. The memory address must be of a Dword (bits 1:0 must be 0). 6.1.16 MSI Message Data Address Offset: 68H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved
Message Data
This register specifies the MSI Message Data. The register bits are defined below. * * Bit [31:16]: Reserved (R) - This bit field is reserved and returns zeros on a read. Bit [15:00]: Message Data (R/W) - This bit field specifies the Message Data for an MSI memory write transaction.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 49
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.17 PCI Express Capability Address Offset: 70H Access Type: Read Only Reset Value: 0x0011_0010
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Reserved
Interrupt Message Number
Device Type
Version
Next Capability Pointer
Capability ID
* * * * * *
Bit [31:30,24]: Reserved (R) - These bits are reserved and return zero on a read. Bit [29:25]: Interrupt Message Number (R) - This bit field is hardwired to 0. Bit [23:20]: Device Type (R) - This bit field is hardwired to 0001B to indicate a PCI Express Legacy Endpoint device. Bit [19:16]: Version (R) - This bit field is hardwired to 01H to indicate compliance with the PCI Express Specification revision 1.0a. Bit [15:08]: Next Capability Pointer (R) - PCI Next Capability Pointer. This bit field is hardwired to 00H (this is the last capability). Bit [07:00]: Capability ID (R) - PCI Capability ID. This bit field is hardwired to 10H to indicate that this is a PCI Express Capability.
6.1.18 Device Capabilities Address Offset: 74H Access Type: Read Only Reset Value: 0x0000_8003
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Role-based Err Rep Atten Indicator Pwr Indicator Atten Button Ext Tag Sup Phantom Functions Reserved
Reserved
Slot Power
L1 Latency
L0s Latency
Max Payload
* * * * * * * * * * *
Bit [31:28,17:16]: Reserved (R) - These bits are reserved and return zero on a read. Bit [27:18]: Slot Power (R) - Captured Slot Power Limit Value and Limit Scale. This bit field is hardwired to 0. Bit [15]: Role-based Err Rep (R) - Role-based Error Reporting. This bit is hardwired to 1. Bit [14]: Pwr Indicator (R) - Power Indicator Present. This bit is set if Hot Plug is enabled (HPLE_N pin connected to 0) to indicate the presence of the Hot Plug Power Indicator. Bit [13]: Atten Indicator (R) - Attention Indicator Present. This bit is set if Hot Plug is enabled (HPLE_N pin connected to 0) to indicate the presence of the Hot Plug Attention Indicator. Bit [12]: Atten Button (R) - Attention Button Present. This bit is set if Hot Plug is enabled (HPLE_N pin connected to 0) to indicate the presence of the Hot Plug Attention switch (connected to the HPL_N pin). Bit [11:09]: L1 Latency (R) - This bit field is hardwired to 000B. Bit [08:06]: L0s Latency (R) - This bit field is hardwired to 000B. Bit [05]: Ext Tag Sup (R) - Extended Tag Field Supported. This bit is hardwired to 0. Bit [04:03]: Phantom Functions (R) - This bit field is hardwired to 0. Bit [02:00]: Max Payload (R) - Max_Payload_Size Supported. This bit field is hardwired to 011B to indicate that a maximum 1024-byte payload is supported.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 50
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.19 Device Status and Control Address Offset: 78H Access Type: Read/Write/Write 1 to Clear Reset Value: 0x0000_2000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
NonFtl Err Rep En Fatal Err Rep En Max Read Request Size Max Payload Size Corr Err Rep En UnsReq Rep En Non-Fatal Error Aux Pwr PM En EnSnp Not Req Unsup Req Det Trans Pending Fatal Error Det Ext Tag Fld En Phntm Fnc En Corr Error Det En Rlxd Ord AUX Power Reserved
Reserved
* * * * * * * * * * * * * * * * * *
Bit [31:22,15]: Reserved (R) - These bits are reserved and return zero on a read. Bit [21]: Trans Pending (R) - Transactions Pending. Bit [20]: AUX Power (R) - AUX Power Detected. This bit is hardwired to 0. Bit [19]: Unsup Req Det (R/W1C) - Unsupported Request Detected. Bit [18]: Fatal Error Det (R/W1C) - Fatal Error Detected. Bit [17]: Non-Fatal Error (R/W1C) - Non-Fatal Error Detected. Bit [16]: Corr Error Det (R/W1C) - Correctable Error Detected. Bit [14:12]: Max Read Request Size (R/W) - Allowable values are 000B to 011B (128 to 1024 bytes). Default is 010B (512 bytes). Bit [11]: EnSnp Not Req (R) - Enable No Snoop. This bit is hardwired to 0. Bit [10]: Aux Pwr PM En (R) - Auxiliary Power PM Enable. This bit is hardwired to 0. Bit [09]: Phntm Fnc En (R) - Phantom Functions Enable. This bit is hardwired to 0. Bit [08]: Ext Tag Fld En (R) - Extended Tag Field Enable. This bit is hardwired to 0. Bit [07:05]: Max Payload Size (R/W) - Allowable values are 000B to 011B (128 to 1024 bytes). Default is 000B (128 bytes). Bit [04]: En Rlxd Ord (R) - Enable Relaxed Ordering. This bit field is hardwired to 0. Bit [03]: UnsReq Rep En (R/W) - Unsupported Request Reporting Enable. Bit [02]: Fatal Err Rep En (R/W) - Fatal Error Reporting Enable. Bit [01]: NonFtl Err Rep En (R/W) - Non-Fatal Error Reporting Enable. Bit [00]: Corr Err Rep En (R/W) - Correctable Error Reporting Enable.
6.1.20 Link Capabilities Address Offset: 7CH Access Type: Read Only Reset Value: 0x0003_F411
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
ASPM Support
Port Number
Reserved
L1 Exit Latency
L0s Exit Latency
Maximum Link Width
Maximum Link Speed
* * * * * * *
Bit [31:24]: Bit [23:18]: Bit [17:15]: Bit [14:12]: Bit [11:10]: Bit [09:04]: Bit [03:00]:
Port Number (R) - This bit field is hardwired to 00H. Reserved (R) - These bits are reserved and return zero on a read. L1 Exit Latency (R) - This bit field is hardwired to 111B. L0s Exit Latency (R) - This bit field is hardwired to 111B. ASPM Support (R) - This bit field is hardwired to 01B. Maximum Link Width (R) - This bit field is hardwired to 000001B. Maximum Link Speed (R) - This bit field is hardwired to 0001B.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 51
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.21 Link Status and Control Address Offset: 80H Access Type: Read/Write Reset Value: 0x0011_0000 or 0x1011_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Slot Clk Config Comm Clk Cfg ASPM Control 00 Link Train Err Link Training Link Disable Retrain Link Ext Synch Reserved
Reserved
Negotiated Link Width
Link Speed
Reserved
* * * * * * * * * * * *
Bit [31:29,15:08,02]: Reserved (R) - These bits are reserved and return zero on a read. Bit [28]: Slot Clk Config (R) - Slot Clock Configuration. This bit is 1 if the reference clock is detected. Bit [27]: Link Training (R) -This bit is hardwired to 0. Bit [26]: Link Train Err (R) - This bit is hardwired to 0. Bit [25:20]: Negotiated Link Width (R) - This bit field is hardwired to 000001B. Bit [19:16]: Link Speed (R) - This bit field is hardwired to 0001B. Bit [07]: Ext Synch (R/W) - Extended Synch. Bit [06]: Comm Clk Cfg (R/W) - Common Clock Configuration. Bit [05]: Retrain Link (R) - This bit is hardwired to 0. Bit [04]: Link Disable (R) - This bit is hardwired to 0. Bit [03]: RCB (R/W) - Read Completion Boundary. Bit [01:00]: ASPM Control (R/W)
6.1.22 Global Register Offset Address Offset: F0H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Dword Offset
This register provides indirect addressing of a Global Register otherwise accessible directly via Base Address Register 0. The Dword address offset for an indirect access is in bits 6 to 2; bits 31 to 7, 1, and 0 are reserved and should always be 0. Note that this is physically the same register as that addressed by Base Address Register 2, Offset 00H. 6.1.23 Global Register Data Address Offset: F4H Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
As defined for indirectly accessed register
This register provides the indirect access addressed by the Global Register Offset register.
RCB
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 52
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.24 Port Register Offset Address Offset: F8H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Dword Offset 00
This register provides indirect addressing of a Port Register otherwise accessible directly via Base Address Register 1. The Dword address offset for an indirect access is in bits 12 to 2; bits 31 to 13, 1, and 0 are reserved and should always be 0. Note that this is physically the same register as that addressed by Base Address Register 2, Offset 08H. 6.1.25 Port Register Data Address Offset: FCH Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
As defined for indirectly accessed register
This register provides the indirect access addressed by the Port Register Offset register. 6.1.26 Advanced Error Reporting Capability Address Offset: 100H Access Type: Read Only Reset Value: 0x0001_0001
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Next Capability Pointer
Version
Extended Capability ID
* * *
Bit [31:20]: Next Capability Pointer (R) - PCI Next Capability Pointer. This bit field is hardwired to 000H (this is the last capability). Bit [19:16]: Version (R) - This bit field is hardwired to 01H to indicate compliance with the PCI Express Specification revision 1.0a. Bit [15:00]: Extended Capability ID (R) - PCI Capability ID. This bit field is hardwired to 0001H to indicate that this is an Advanced Error Reporting Capability.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 53
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.27 Uncorrectable Error Status Address Offset: 104H Access Type: Read/Write 1 to Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
FC Protocol Err DL Protocol Err Rx Overflow (0) Malformed TLP Surprise Down Unsup Req Err Comp Timeout Poisoned TLP Unexp Comp Comp Abort ECRC Error Undefined Undefined Undefined
Reserved
Reserved
Reserved
* * * * * * * * * * * * *
Bit [31:21,11:06,03:01]: Reserved (R) - These bits are reserved and return zero on a read. Bit [20]: Unsup Req Err (R/W1C) - Unsupported Request Error Status. Bit [19]: ECRC Error (R/W1C) - ECRC Error Status. Bit [18]: Malformed TLP (R/W1C) - Malformed TLP Status. Bit [17]: Rx Overflow (R) - Receiver Overflow Status; always 0. Bit [16]: Unexp Comp (R/W1C) - Unexpected Completion Status. Bit [15]: Comp Abort (R/W1C) - Completer Abort Status. Bit [14]: Comp Timeout (R/W1C) - Completion Timeout Status. Bit [13]: FC Protocol Err (R/W1C) - Flow Control Protocol Error Status. This bit is hardwired to 0 (as are its mask and error severity bits). Bit [12]: Poisoned TLP (R/W1C) - Poisoned TLP Status. Bit [05]: Surprise Down (R/W1C) - Surprise Down Error Status. Bit [04]: DL Protocol Err (R/W1C) - Data Link Protocol Error Status. Bit [00]: Undefined (R/W) - This bit is reset to 0, but may be written. The definition of this bit was changed in revision 1.1 of the PCI-Express specification.
6.1.28 Uncorrectable Error Mask Address Offset: 108H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
FC Protocol Err DL Protocol Err DL Protocol Err Rx Overflow (0) Malformed TLP Surprise Down Unsup Req Err Comp Timeout Poisoned TLP Unexp Comp Comp Abort ECRC Error
Reserved
Reserved
Reserved
The bits of this register are the mask bits for corresponding bits of the Uncorrectable Error Status register. 6.1.29 Uncorrectable Error Severity Address Offset: 10CH Access Type: Read/Write Reset Value: 0x0006_2031
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
FC Protocol Err Rx Overflow (0) Malformed TLP Surprise Down Unsup Req Err Comp Timeout Poisoned TLP Unexp Comp Comp Abort ECRC Error
Reserved
Reserved
Reserved
The bits of this register are the error severity bits for corresponding bits of the Uncorrectable Error Status register.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 54
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.30 Correctable Error Status Address Offset: 110H Access Type: Read/Write 1 to Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Replay Timeout REPLAY_NUM Advis NonFatal Bad DLLP Bad TLP Rx Error
Reserved
Reserved
Reserved
* * * * * * *
Bit [31:14,11:09,05:01]: Reserved (R) - These bits are reserved and return zero on a read. Bit [13]: Advis Non-Fatal (R/W1C) - Advisory Non-Fatal Error Status. Bit [12]: Replay Timeout (R/W1C) - Replay Timer Timeout Status. Bit [08]: REPLAY_NUM (R/W1C) - REPLAY_NUM Rollover Status. Bit [07]: Bad DLLP (R/W1C) - Bad DLLP Status. Bit [06]: Bad TLP (R/W1C) - Bad TLP Status. Bit [00]: Rx Error (R/W1C) - Receiver Error Status. This bit is hardwired to 0 (as is the corresponding mask bit).
6.1.31 Correctable Error Mask Address Offset: 114H Access Type: Read/Write Reset Value: 0x0000_2000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Replay Timeout REPLAY_NUM Advis NonFatal Bad DLLP Bad TLP Rx Error
Reserved
Reserved
Reserved
The bits of this register are the mask bits for corresponding bits of the Correctable Error Status register. 6.1.32 Advanced Error Capabilities and Control Address Offset: 118H Access Type: Read/Write Reset Value: 0x0000_00A0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
ECRC Gen Cap ECRC Chk Cap ECRC Gen En ECRC Chk En
Reserved
First Error Pointer
* * * * * *
Bit [31: 09]: Reserved (R) - These bits are reserved and return zero on a read. Bit [08]: ECRC Chk En (R/W) - ECRC Check Enable. Bit [07]: ECRC Chk Cap (R) - ECRC Check Capable. This bit is hardwired to 1. Bit [06]: ECRC Gen En (R/W) - ECRC Generation Enable. Bit [05]: ECRC Gen Cap (R) - ECRC Generation Capable. This bit is hardwired to 1. Bit [04:00]: First Error Pointer (R).
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 55
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.1.33 Header Log Address Offset: 11CH / 120H / 124H / 128H Access Type: Read Only Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Header Log (1st Dword)
Header Byte 0
Header Byte 1
Header Byte 2
Header Byte 3
Header Log (2nd Dword)
Header Byte 4
Header Byte 5
Header Byte 6
Header Byte 7
Header Log (3rd Dword)
Header Byte 8
Header Byte 9
Header Byte 10
Header Byte 11
Header Log (4th Dword)
Header Byte 12
Header Byte 13
Header Byte 14
Header Byte 15
This 16 byte register contains the header of a TLP associated with an error.
6.2 Internal Register Space - Base Address 0
These registers are 32 or 64 bits wide and are the Global Registers of the SII3531A. Access to this register space is through the PCI Memory space. Address Offset 00H 04H-3FH 40H 44H 48H 4CH-77H 78H 7CH Register Name Port Slot Status Reserved Global Control Global Interrupt Status PHY Configuration Reserved Configuration Register Offset Configuration Register Data Table 6-2 SII3531A Internal Register Space - Base Address 0
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 56
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.2.1 Port Slot Status Register Address Offset: 00H Access Type: Read Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Attention Slot Status
This register provides the Status for the 31 Command Slots for the port. This register also appears in Port register space. Reading this register will clear the Command Completion Status for the port if the Interrupt No Clear on Read bit (bit 3) of the Port Control register is 0. The register bits are defined below. * Bit [31]: Attention (R) - This bit indicates that something occurred that requires the attention of the host. Other port registers must be examined to determine the origin of the error. This bit is the logical OR of the masked interrupt conditions, except for Command Completion, reported in the Port Interrupt Status register. Bit [30:0]: Slot Status (R) - These bits are the Active status bits corresponding to Slot numbers 30 to 0. The Active status bit for a slot is set when the Slot number is written to the Command Execution FIFO (direct command transfer method) or when a Command Activation register is written (indirect command transfer method).
*
6.2.2 Global Control Address Offset: 40H Access Type: Read/Write Reset Value: 0x8100_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Port Int Enable 3Gb/s Capable Global Reset MSIACK
Reserved
Arbiter Control
Reserved
This register controls various functions of the chip. * Bit [31]: Global Reset (R/W). This bit, when set to one, asserts a port reset to all ports. This bit must be cleared to zero to allow normal operation. Once set by this bit, all port resets will remain set to one until explicitly cleared to zero through the individual port control clear registers. Refer to the port control set register description for more information. Bit [30]: MSI Acknowledge (W). Writing a one to this bit acknowledges a Message Signaled Interrupt and permits generation of another MSI. This bit is cleared immediately after the acknowledgement is recognized by the control logic, hence the bit will always be read as a zero. If all interrupt conditions are removed subsequent to an MSI, it is not necessary to assert this Acknowledge; another MSI will be generated when an interrupt condition occurs. Bit [29:25,15:1]: Reserved (R). These bits are reserved and will return zeroes when read. Bit [23:16]: Arbiter Control (R/W). This bit field, when set to 42H, selects an alternate arbitration algorithm. Bit [24]: 3Gb/s Capable (R). This bit is always one to indicate that the device is configured and tested for 3Gb/s (SATA generation 2) operation. Bit [0]: Port Interrupt Enable (R/W). This bit, when set to one, allows assertion of an interrupt when the port asserts an interrupt. When set to zero, the port interrupts are masked.
*
* * * *
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 57
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.2.3 Global Interrupt Status Address Offset: 44H Access Type: Read/Write 1 Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Port Interrupt PHY Config
Reserved
This register is used to determine the status of various chip functions. * * Bit [31:1]: Reserved (R). This bit field is reserved and returns zeroes when read. Bit [0]: Port Interrupt Status (R/W1C). This bit, when set to one, indicates that the port has an interrupt condition pending. Writing a 1 to this bit clears the Command Completion Interrupt Status, but not other interrupt sources.
6.2.4 PHY Configuration Address Offset: 48H Access Type: Read/Write Reset Value: 0x0000_2C40
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved
The PHY Configuration register is reset to 0x00002C40. These bits should not be changed from their defaults as erratic operation may result (including bits identified as Reserved).
6.2.5 BIST Control Register Address Offset: 50H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
BISTenable BISTpatsel BISTrun
Reserved
This register is used to control Data Loopback BIST. * * * * Bit [31]: BISTenable (R/W) - This bit enables the data paths for running data loopback BIST. Bit [30]: BISTpatsel (R/W) - This bit selects whether a repeating pattern (supplied from the BIST Pattern register) or a pseudorandom pattern is used for running data loopback BIST. Setting the bit to 1 selects the repeating pattern. Bit [29:01]: Reserved (R). These bits are reserved and return zeros on a read. Bit [00]: BISTrun (R/W). This bit enables the transmission of loopback data.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 58
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.2.6 BIST Pattern Register Address Offset: 54H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
BIST Pattern
This register contains the 32-bit fixed pattern that is repeatedly transmitted in data loopback when the BISTpatsel bit (bit 30) of the BIST Control register is set to 1. 6.2.7 BIST Status Register Address Offset: 58H Access Type: Read Reset Value: 0x8000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
BISTgood
Reserved
BISTerrcnt
* * *
Bit [31]: BISTgood (R) - This bit indicates that all comparisons have been good since initiating data loopback BIST. This bit is initialized (to 1) when the BISTenable bit is zero in the BIST Control register. Bit [30:12]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [11:00]: BISTerrcnt (R). This bit field indicates the number of comparisons that have been in error since initiation of data loopback BIST. This counter is a saturating counter (it stops counting at 0FFFH). This counter is cleared when the BISTenable bit is zero in the BIST Control register.
6.2.8 MemBIST Status Register Address Offset: 5CH Access Type: Read Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
MemBIST Status Reserved
Buffer1
* *
Bit [31:08]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [07:00]: MemBIST Status (R). This bit field indicates the status of MemBIST for each RAM. Each status bit is set to 1 for a successful test.
6.2.9 Configuration Register Offset Address Offset: 78H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Dword Offset 00
This register provides indirect addressing of a Configuration Register. The Dword address offset for an indirect access is in bits 11 to 2; bits 31 to 12, 1, and 0 are reserved and should always be 0.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 59
Buffer0
LRAM1
LRAM0
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.2.10 Configuration Register Data Address Offset: 7CH Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
As defined for indirectly accessed register
This register provides the indirect access addressed by the Configuration Register Offset register. All accesses must be 32-bit (Dword) accesses.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 60
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3 Internal Register Space - Base Address 1
These registers are 32 bits wide and are the Port Registers and LRAM of the SII3531A. Access to these registers is through the PCI Memory space. Address Offset 000H-F7FH F80H-FFFH 1000H 1004H 1008H 100CH 1010H 1014H 1018H 101CH 1020H 1024H 1028H 102CH 1030H-103FH 1040H 1044H 1048H 104CH 1050H 1054H-17FFH 1800H 1804H-1BFFH 1C00H-1CF7H 1CF8H-1DFFH 1E00H-1E2BH 1E04H 1E2CH-1E3FH 1E40H-1E63H 1E64H-1EFFH 1F00H 1F04H 1F08H 1F0CH 1F10H 1F14H-1FFFH Register Name Port LRAM Slots Port Multiplier Device Status/QActive Registers Write: Port Control Set / Read: Port Status Write: Port Control Clear Port Interrupt Status Reserved Port Interrupt Enable Set Port Interrupt Enable Clear Reserved 32-bit Activation Upper Address Port Command Execution FIFO Port Command Error Port FIS Configuration Port PCI Exp Request FIFO Threshold Reserved Port 8B/10B Decode Error Counter Port CRC Error Counter Port Handshake Error Counter Reserved Port PHY Configuration Reserved Port Slot Status Reserved Command Activation Registers Reserved Port EXEC Diagnostic Registers 0-10 Port Context Register Reserved Port PSD Diagnostic Registers 0-8 Reserved Port SControl Port SStatus Port SError Port SActive (indirect location) Port SNotification Reserved
Table 6-3 SII3531A Internal Register Space - Base Address 1
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 61
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.1 Port LRAM Address Offset: 000H-FFFH Access Type: Read/Write Reset Value: indeterminate The Port LRAM consists of 31 Slots of 128 bytes each and a 32 Registers. Address Offset 000H-07FH 080H-0FFH 100H-17FH 180H-EFFH F00H-F7FH F80H-F83H F84H-F87H F88H-F8BH F8CH-F8FH F90H-FF7H FF8H-FFBH FFCH-FFFH Description Slot 0 Slot 1 Slot 2 Slots 3-29 Slot 30 Port Multiplier Device 0 Status Register Port Multiplier Device 0 QActive Register Port Multiplier Device 1 Status Register Port Multiplier Device 1 QActive Register Port Multiplier Device Registers for Devices 2-14 Port Multiplier Device 15 Status Register Port Multiplier Device 15 QActive Register Table 6-4 Port LRAM layout Address Offset 000H-01FH 020H-02FH 030H-03FH 040H-047H 040H-07FH 1C00H-1C07H Description Current FIS and Control Scatter/Gather Entry 0 or ATAPI command packet Scatter/Gather Entry 1 Command Activation Register (Actual) Scatter/Gather Table Command Activation Register (Shadow) Table 6-5 Port LRAM Slot layout A Port LRAM Slot is 128 bytes used to define Serial-ATA commands. The addresses shown above are for slot 0. 6.3.1.1 Command Activation Register The Command Activation Register is written using a shadow address. The Command Execution State Machine overwrites it when the Scatter/Gather Table is fetched. The translation of the shadow address to the actual LRAM address is shown here: Address bit Shadow Activation Register Address Actual Activation Register LRAM Address 12 1 0 11 1 10 9 8 1 0 0 Slot Number 7 6 5 4 Slot Number 1 0 0 3 0 210 000 000
nd
"Slot" used to hold 16 Port Multiplier Device Specific
Port Request Block (PRB)
Table 6-6 Command Activation Register Address Translation 6.3.1.2 Port Multiplier Device Specific Registers The Port Multiplier Device Specific Registers are 16 registers that contain the SActive register and the Diagnostic register for each of the 16 devices that may be connected to a Port Multiplier. Besides being directly addressable in the LRAM address space, the currently selected Port Multiplier Port SActive register may be indirectly addressed at offset 1F0CH. The LRAM address for this indirect (read-only) access is derived as shown here: Address bit SActive Indirect Register Address Actual LRAM Address 12 1 0 11 1 1 10 1 1 9 1 1 8 1 1 7 0 1 6 5 4 3 0 0 0 1 PMP (in SControl) 210 100 000
Table 6-7 SActive Indirect Address Translation
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 62
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.2 Port Slot Status Address Offset: 1800H Access Type: Read Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Attention Slot Status
This register provides the status for the 31 Command Slots for the Serial-ATA port. This register also appears along with the Port Status register of the other port in Global register space. Reading this register will clear the Command Completion Status for the port if the Interrupt No Clear on Read bit (bit 3) of the Port Control register is 0. The register bits are defined below. * Bit [31]: Attention (R) - This bit indicates that something occurred in the port that requires the attention of the host. Other port registers must be examined to determine the origin of the error. This bit is the logical OR of the masked interrupt conditions reported in the Port Interrupt Status register. Bit [30:0]: Slot Status (R) - These bits are the Active status bits corresponding to Slot numbers 30 to 0. The Active status bit is set when a command is transferred to the Slot RAM.
*
6.3.3 Port Control Set Address Offset: Set: 1000H Access Type: Write One To Set Reset Value: N/A
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Auto Interlock Accept Scramble Disable Interlock Accept 32-bit Activation Interlock Rejec t Interrupt NCoR Packet Length Transmit BIST CONT Disable
Device Reset
Port Initialize
OOB Bypass
LED Disable
PM Enable
Reserved
Reserved
This register is used to direct various port operations. A one written to a bit position sets that bit in the control register. * * * * * * * * Bit [31:26,24:16]: Reserved (R). These bits are reserved. Bit [25]: OOB Bypass (W1S). If this bit is set, the Link will bypass the OOB initialization sequence following a reset. This bit is reset by Global Reset, and not reset by Port Reset. Bit [15]: LED On (W1S). This bit turns on the LED Port Activity indicator regardless of the state of LED Disable (bit 4). Bit [14]: Auto Interlock Accept (W1S). When this bit is set the link will accept any interlocked FIS reception. The link will transmit R_OK in response to the received FIS. Bit [13]: PM Enable (W1S). This bit enables Port Multiplier support. Bit [12]: Interlock Accept (W1S). This bit is used to signal the link to accept an interlocked FIS reception. The link will transmit R_OK in response to the received FIS. This bit is self-clearing. Bit [11]: Interlock Reject (W1S). This bit is used to signal the link to reject an interlocked FIS reception. The link will transmit R_ERR in response to the received FIS. This bit is self-clearing. Bit [10]: 32-bit Activation (W1S). When this bit is set to one, a write to the low 32 bits of a Command Activation register will cause the 32-bit Activation Upper Address register contents to be written to the upper 32 bits of the Command Activation register and will trigger command execution. When this bit is zero, a write to the upper 32 bits or all 64 bits of a command activation register is required to trigger command execution. This bit is set for environments that do not address more than 232 bytes of host memory. Bit [9]: Scrambler Disable (W1S). When this bit is set to one, the Link scrambler operation is disabled. Bit [8]: CONT Disable (W1S). When this bit is set to one, the Link will not generate a CONT following repeated primitives. Bit [7]: Transmit BIST (W1S). This bit causes transmission of a BIST FIS. Bit [6]: Resume (W1S). Bit [5]: Packet Length (W1S). This bit directs the length of the packet command to be sent for commands with packet protocol. When this bit is zero, a 12-byte packet will be sent. When this bit is one, a 16-byte packet will SiI-DS-0208-C 63
* * * * *
(c) 2006 Silicon Image, Inc.
Port Reset
Resume
LED On
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
be sent. This bit should be set to the same value as derived from word 0 of the identify packet command returned data. Bit [4]: LED Disable (R/W). This bit disables the operation of the LED Port Activity indicator. Bit [3]: Interrupt No Clear on Read (W1S). When this bit is set to one, a command completion interrupt may be cleared only by writing a one to the Command Completion bit in the Port Interrupt Status register. When this bit is zero, reading the Port Slot Status register may also be used to clear the Command Completion interrupt. Bit [2]: Port Initialize (W1S). Setting this bit to one causes all commands to be flushed from the port and all command execution parameters to be set to an initialized state. Setting this bit to one causes the port ready bit in the port status register to be cleared to zero. When the initialization procedure is complete, the port ready bit will be set to one. This bit is self-clearing and will be cleared upon execution by the port. Bit [1]: Device Reset (W1S). Setting this bit to one causes all commands to be flushed from the port and all command execution parameters to be set to an initialized state. Setting this bit to one causes the port ready bit in the port status register to be cleared to zero. The port will generate the COMRESET primitive on the serial ATA bus. When the out of band sequence and initialization procedure is complete, the port ready bit will be set to one. This bit is self-clearing and will be cleared upon execution by the port. Bit [0]: Port Reset (W1S). Setting this bit to one causes the port to be held in a reset state. No commands will be executed while in this state. All port registers and functions are reset to their initial state, except as noted below. All commands are flushed from the port and all command execution parameters are set to an initialized state. Setting this bit to one causes the port ready bit in the port status register to be cleared to zero. Upon setting this bit to zero from an asserted state, the port will generate the COMRESET primitive on the serial ATA bus. When the out of band sequence and initialization procedure is complete, the port ready bit will be set to one. This bit is set to one by the Global reset, which is set by a PCI reset, and remains set until cleared by the host (by writing a one to bit 0 of the Port Control Clear register). The register bits that are not initialized by the Port Reset are: * OOB Bypass (bit 25) in Port Control (this register) * Port PHY Configuration register (all bits)
* * *
*
*
6.3.4 Port Status Address Offset: 1000H Access Type: Read Reset Value: 0x001F_0001
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Auto Interlock Accept Scramble Disable Interlock Accept 32-bit Activation Interlock Reject Interrupt NCoR Packet Length Transmit BIST CONT Disable Device Reset Port Initialize OOB Bypass LED Disable
Port Ready
PM Enable
Reserved
Reserved
Active Slot
This register is used to determine the status of various port functions. * * * * Bit [31]: Port Ready (R). This bit reports the Port Ready status. The transition from 0 to 1 of this bit generates the Port Ready Interrupt Status (bit 18/2 of the Port Interrupt Status register). Bit [30:26,24:21]: Reserved (R). These bits are reserved. Bit [20:16]: Active Slot (R). This bit field contains the slot number of the command currently being executed. When a command error occurs, this bit field indicates the slot containing the command in error. Bit [25,15:0]: These bits reflect the current state of the corresponding bits in the Port Control register. Refer to the Port Control Set register for a complete description.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 64
Port Reset
Resume
LED On
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.5 Port Control Clear Address Offset: 1004H Access Type: Write One To Clear Reset Value: N/A
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Auto Interlock Accept Scramble Disable 32-bit Activation Interrupt NCoR Packet Length Transmit BIST CONT Disable
OOB Bypass
LED Disable
PM Enable
Reserved
Reserved
This register is used to direct various port operations. A one written to a bit position clears that bit in the control register. * * Bit [31:26,24:16,12:11,2:1]: Reserved (R). These bits are reserved. Bit [25,15:13,10:3,0]: (W1C) Writing a one to these bits clears the associated bit position of the Port Control register. Refer to the Port Control Set register for bit descriptions.
6.3.6 Port Interrupt Status Address Offset: 1008H Access Type: Read/Write 1 Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
8b/10 Error Thresh 8b/10 Error Thresh Hshk Error Thresh Hshk Error Thresh CRC Error Thresh CRC Error Thresh Cmd Completion Cmd Completion Command Error Command Error PhyRdyChg PhyRdyChg PM Change PM Change Port Ready Port Ready SDB Notify SDB Notify DevExchg DevExchg Comwake Comwake
UnrecFIS
Reserved
Reserved
This register is used to report the interrupt status. The status bits in the upper half of the register report the described condition. The status bits in the lower half of the register are masked by the corresponding interrupt enable bits or by the setting in the corresponding threshold registers. Writing a 1 to either interrupt status bit clears it. * * * Bit [31:28,15:12]: Reserved (R). These bits are reserved. Bit [27/11]: SDB Notify (W1C). This bit indicates that a Set Device Bits FIS was received with the N-bit (bit 15 of first dword) set to one. Bit [26/10]: Handshake Error Threshold (W1C). This bit indicates that the Handshake error count is equal to or greater than the Handshake error threshold. Bit 10 is masked if the Handshake Error Threshold register contains a zero threshold setting. When a 1 is written to this bit, both the status bit and the Handshake Error Counter are cleared. Bit [25/9]: CRC Error Threshold (W1C). This bit indicates that the CRC error count is equal to or greater than the CRC error threshold. Bit 9 is masked if the CRC Error Threshold register contains a zero threshold setting. When a 1 is written to this bit, both the status bit and the CRC Error Counter are cleared. Bit [24/8]: 8b/10b Decode Error Threshold (W1C). This bit indicates that the 8b/10b Decode error count is equal to or greater than the 8b/10b Decode error threshold. Bit 8 is masked if the 8b/10b Decode Error Threshold register contains a zero threshold setting. When a 1 is written to this bit, both the status bit and the 8b/10b Decode Error Counter are cleared. Bit [23/7]: DevExchg (Device Exchanged) (W1C) - This bit is the X bit in the DIAG field of the SError register. It may be cleared by writing a corresponding one bit to either register. Bit [22/6]: UnrecFIS (Unrecognized FIS Type) (W1C) - This bit is the F bit in the DIAG field of the SError register. It may be cleared by writing a corresponding one bit to either register. Bit [21/5]: ComWake (W1C) - This bit is the W bit in the DIAG field of the SError register. It may be cleared by writing a corresponding one bit to either register. Bit [20/4]: PhyRdyChg (W1C) - This bit is the N bit in the DIAG field of the SError register. It may be cleared by writing a corresponding one bit to either register. Bit [19/3]: PM Change (W1C). This bit indicates that a change has occurred in the power management state.
* *
* * * * *
UnrecFIS
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 65
Port Reset
Reserved
Reserved
Resume
LED On
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
* Bit [18/2]: Port Ready (W1C). This bit indicates that the port has become ready to accept and execute commands. This status indicates that Port Ready (bit 31 in the Port Status register) has made a 0 to 1 transition. Clearing this status does not change the Port Ready bit in the Port Status register and this status is not set subsequently until the Port Ready bit changes state. Bit [17/1]: Command Error (W1C). This bit indicates that an error occurred during command execution. The error type can be determined via the port error register. Bit [16/0]: Command Completion (W1C). This bit indicates that one or more commands have completed execution.
* *
6.3.7 Port Interrupt Enable Set / Port Interrupt Enable Clear Address Offset: 1010H / 1014H Access Type: Read/Write 1 Set/Write 1 Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Cmd Completion Command Error PhyRdyChg PM Change Port Ready SDB Notify DevExchg Comwake UnrecFIS Interrupt Steering
Reserved
Reserved
The Interrupt Enable register is controlled by these registers. Writing to the Interrupt Enable Set register sets the Interrupt Enable bits; the enable bit is set for each corresponding bit to which a 1 is written. Writing to the Interrupt Enable Clear register clears the Interrupt Enable bits; the enable bit is cleared for each corresponding bit to which a 1 is written. The Interrupt Enable register may be read at either address offset. Note that bits 8, 9, and 10 do not have an enable bit; the corresponding interrupts are enabled by corresponding threshold registers. * * * Bit [31:30]: Interrupt Steering (R/W). This bit field specifies which one of the four interrupts is to be used for interrupts from this port. INTA is selected by 00B; INTB by 01B; INTC by 10B; and INTD by 11B. Bit [29:12,10:8]: Reserved (R). These bits are reserved and return zeros on a read. Bit [11,7:0]: Interrupt Enables (R/W1S/W1C). These bits are the interrupt enables for the corresponding bits of the Interrupt Status register.
6.3.8 32-bit Activation Upper Address Address Offset: 101CH Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Upper Address
This register contains the 32-bit value written to the upper half of the Command Activation register when the lower half of that register is written and the 32-bit Activation control bit (bit 10) is set in the Port Control register.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 66
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.9 Port Command Execution FIFO Address Offset: 1020H Access Type: Read/Write Reset Value: 0x0000_00XX
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Execution Slot Number
When written, this register causes the supplied slot number to be pushed into the tail of the command execution FIFO. A valid PRB must be populated in the associated slot in port LRAM. When read, this register supplies the entry at the head of the command execution FIFO. The FIFO is not popped as a result of a read operation.
6.3.10 Port Command Error Address Offset: 1024H Access Type: Read Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Error Code
This register contains the error type resulting from a command error. The following table lists the error codes, error names, and error descriptions.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 67
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Table 6-8 Command Error Codes Error Name DEVICEERROR SDBERROR DATAFISERROR SENDFISERROR INCONSISTENTSTATE Code 1 2 3 4 5 Description The ERR bit was set in a "register - device to host" FIS received from the device. The task file registers are written back to PRB slot for host scrutiny. The ERR bit was set in a "set device bits" FIS received from the device. The SII3531A detected an error during command execution that was not reported by the device upon command completion. The SII3531A was unable to send the Initial command FIS for a command. This can occur if a low-level link error occurs during command transmission. The SII3531A detected an inconsistency in protocol. Any departure from standard Serial ATA protocol that causes indecision in the internal sequencers will cause this error. A Data FIS was received when a write data protocol was specified or a DMA Activate FIS was received when a read data protocol was specified. While transferring data from the SII3531A to a device, the end of the Scatter Gather list was encountered before the entire transfer was completed. The device is requesting additional data but there is no Scatter Gather Entry to define the source of data. While transferring data from a device to the SII3531A, the end of the Scatter Gather list was encountered before the entire transfer was completed. Data was received from the device but there is no Scatter Gather Entry to define where the data should be deposited. During the first PIO setup of Packet command, the data direction bit was invalid, indicating a transfer from device to host. A requested Scatter Gather Table not aligned on a quadword boundary. All addresses defining Scatter Gather Tables must be quadword aligned. Bits[2:0] must be zeroes. A PCI Target Abort occurred while the SII3531A was fetching a Scatter Gather Table from host memory. A PCI Master Abort occurred while the SII3531A was fetching a Scatter Gather Table from host memory. A PCI Parity Error occurred while the SII3531A was fetching a Scatter Gather Table from host memory. The address of a PRB written to a command activation register was not aligned on a quadword boundary. All PRB addresses must be quadword aligned. Bits[2:0] must be zeroes. A PCI Target Abort occurred while the SII3531A was fetching a Port Request Block (PRB) from host memory. A PCI Master Abort occurred while the SII3531A was fetching a Port Request Block (PRB) from host memory. A PCI Parity Error occurred while the SII3531A was fetching a Port Request Block (PRB) from host memory. A PCI Target Abort occurred while data transfer was underway between the SII3531A and host memory. A PCI Master Abort occurred while data transfer was underway between the SII3531A and host memory. A PCI Parity Error occurred while data transfer was underway between the SII3531A and host memory. A FIS was received while attempting to transmit a Service FIS. Following the receipt of a Set Device Bits FIS containing a service request, the device sent another FIS before allowing the host to send a Service FIS.
DIRECTIONERROR UNDERRUNERROR
6 7
OVERRUNERROR
8
PACKETPROTOCOLERROR PLDSGTERRORBOUNDARY
11 16
PLDSGTERRORTARGETABORT PLDSGTERRORMASTERABORT PLDSGTERRORPCIPERR PLDCMDERRORBOUNDARY
17 18 19 24
PLDCMDERRORTARGETABORT PLDCMDERRORMASTERABORT PLDCMDERRORPCIPERR PSDERRORTARGETABORT PSDERRORMASTERABORT PSDERRORPCIPERR SENDSERVICEERROR
25 26 27 33 34 35 36
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 68
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.11 Port FIS Configuration Address Offset: 1028H Access Type: Read/Write Reset Value: 0x1000_1555
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved FISBFcfg FISA1cfg FISA6cfg FISB8cfg FISC7cfg FISD4cfg FISD9cfg FIS5Fcfg FIS27cfg FIS34cfg FIS39cfg FIS41cfg FIS46cfg FIS58cfg FISOcfg
This register contains bits for controlling Serial ATA FIS reception. For each possible FIS type, a 2-bit code defines the desired reception behavior as follows: * * * * 00 - Accept FIS without interlock. 01 - Reject FIS without interlock 10 - Interlock FIS. Receive FIS into slot reserved for interlocked FIS reception. If no slot has been reserved, reject the FIS. 11 - Reserved.
Bit[1:0] (FISOcfg) defines the 2-bit code for all other FIS types not defined by bits [29:2]. The following table defines the default behavior of FIS configuration. Table 6-9 Default FIS Configurations FIS Code 27h 34h 39h 41h 46h 58h 5Fh A1h A6h B8h BFh C7h D4h D9h Others Configuration Bits FIS Name Signals Register (Host to Device) Register (Device to Host) DMA Activate DMA Setup Data BIST Activate PIO Setup Set Device Bits reserved reserved reserved reserved reserved reserved reserved fis27cfg[1:0] fis34cfg[1:0] fis39cfg[1:0] fis41cfg[1:0] fis46cfg[1:0] fis58cfg[1:0] fis5Fcfg[1:0] fisa1cfg[1:0] fisa6cfg[1:0] fisb8cfg[1:0] fisbFcfg[1:0] fisc7cfg[1:0] fisd4cfg[1:0] fisd9cfg[1:0] fisocfg[1:0] Default Value 01b 00b 00b 00b 00b 00b 00b 00b 01b 01b 01b 01b 01b 01b 01b Default Action reject FIS without interlock accept FIS without interlock accept FIS without interlock accept FIS without interlock accept FIS without interlock accept far-end retimed loopback, reject any other accept FIS without interlock accept FIS without interlock reject FIS without interlock reject FIS without interlock reject FIS without interlock reject FIS without interlock reject FIS without interlock reject FIS without interlock reject FIS without interlock
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 69
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.12 Port PCI Express Request FIFO Threshold Address Offset: 102CH Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved PCI Exp Write Request Threshold Reserved Reserved PCI Exp Read Request Threshold Reserved
This register contains threshold levels at which the PCI Express master state machine will request the PCI Express bus relative to the amount of data or free space in the data FIFO. The data FIFO capacity is 2Kbyte (256 Qwords). When writing to host memory (reading data from a device), the PCI Express Write Request Threshold is compared to the amount of data in the data FIFO. When the FIFO contents exceed the threshold value, a request is issued to write the data to host memory, emptying the contents of the data FIFO. When reading host memory (writing data to a device) the PCI Express Read Request Threshold is compared to the amount of free space in the data FIFO. When the free space exceeds the threshold value, a request is issued to read data from host memory to fill the FIFO. * * * * * * Bit [31:27]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [26:19]: PCI Exp Write Request Threshold (R/W). This field defines the number of Qwords that must be in the data FIFO before issuing a PCI Express request. A value of zero will cause a request if the FIFO contains any amount of data. Bit [18:16]: Reserved (R). This bit field is reserved and returns zeros on a read. This field is defined so that the host may write a byte count value into the threshold register. Bit [15:11]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [10:3]: PCI Exp Read Request Threshold (R/W). This field defines the number of Qwords that must be available in the data FIFO before issuing a PCI Express request. A value of zero will cause a request if the FIFO contains any free space and the DMA is active. Bit [2:0]: Reserved (R). This bit field is reserved and returns zeros on a read. This field is defined so that the host may write a byte count value into the threshold register.
6.3.13 Port 8B/10B Decode Error Counter Address Offset: 1040H Access Type: Read/Write/Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
8B/10B Decode Error Threshold 8B/10B Decode Error Counter
This register counts the number of 8B/10B Decode Errors that have occurred since last cleared. * Bit [31:16]: 8B/10B Decode Error Threshold (R/W). This bit field defines the count at which an interrupt will be asserted. When the count in bits 15:0 is equal to this value, an 8B/10B interrupt will be latched. A threshold value of zero disables interrupt assertion and masks the corresponding interrupt status bit in the Port Interrupt Status register. Bit [15:0]: 8B/10B Decode Error Count (R/WC). This bit field represents the count of 8B/10B errors that have occurred since this register was last written. Any write to this register field will clear both the counter and the interrupt condition. Clearing the interrupt status bit will also clear the counter. The count will not overflow. Once this register reaches its maximum count, it will retain that count until cleared to zero by a write operation.
*
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 70
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.14 Port CRC Error Counter Address Offset: 1044H Access Type: Read/Write/Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
CRC Error Counter Threshold CRC Error Counter
This register counts the number of Serial ATA CRC Errors that have occurred since last cleared. * Bit [31:16]: Serial ATA CRC Error Threshold (R/W). This bit field defines the count at which an interrupt will be asserted. When the count in bits 15:0 is equal to this value, a serial ATA CRC interrupt will be latched. A threshold value of zero disables interrupt assertion and masks the corresponding interrupt status bit in the Port Interrupt Status register. Bit [15:0]: Serial ATA CRC Error Count (R/WC). This bit field represents the count of Serial ATA CRC errors that have occurred since this register was last written. Any write to this register will clear both the counter and the interrupt condition. Clearing the interrupt status bit will also clear the counter. The count will not overflow. Once this register reaches its maximum count, it will retain that count until cleared to zero by a write operation.
*
6.3.15 Port Handshake Error Counter Address Offset: 1048H Access Type: Read/Write/Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Serial ATA Handshake Error Counter Threshold Serial ATA Handshake Error Counter
This register counts the number of Serial ATA Handshake Errors that have occurred since last cleared. * Bit [31:16]: Serial ATA Handshake Error Threshold (R/W). This bit field defines the count at which an interrupt will be asserted. When the count in bits 15:0 is equal to this value, a serial ATA Handshake interrupt will be latched. A threshold value of zero disables interrupt assertion and masks the corresponding interrupt status bit in the Port Interrupt Status register. Bit [15:0]: Serial ATA Handshake Error Count (R/WC). This bit field represents the count of Serial ATA Handshake errors that have occurred since this register was last written. Any write to this register will clear both the counter and the interrupt condition. Clearing the interrupt status bit will also clear the counter. The count will not overflow. Once this register reaches its maximum count, it will retain that count until cleared to zero by a write operation.
*
6.3.16 Port PHY Configuration Address Offset: 1050H Access Type: Read/Write Reset Value: 0x0000_020C
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 71
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
PHY Status
PHY Config
The Port PHY Configuration register is reset by the Global Reset, not by the Port Reset. The reset value is 0x0000020C. * * * Bit[31:16]: PHY Status (R). These bits report status of the PHY (currently always 0). Bit[15:5]: PHY Config (R/W). These bits configure the PHY. They should not be changed from their defaults as erratic operation may result. Bit[4:0]: Tx Amplitude (R/W) These bits set the nominal output swing for the Transmitter. The amplitude will be increased by 50mV by an increment of the value.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 72
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.17 Port Device Status Register Address Offset: F80H (PM Port 0)/ F88H (PM Port 1) / F90H (PM Port 2) / F98H (PM Port 3) / FA0H (PM Port 4) / FA8H (PM Port 5) / FB0H (PM Port 6) / FB8H (PM Port 7) / FC0H (PM Port 8) / FC8H (PM Port 9) / FD0H (PM Port 10) / FD8H (PM Port 11) / FE0H (PM Port 12) / FE8H (PM Port 13) / FF0H (PM Port 14) / FF8H (PM Port 15) Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
service_pending legacy_queue native_queue device_busy
reserved
exec_active_slot
pio_end_status
These 16 registers contain information useful for diagnosing behavior of the execution unit. These 16 registers contain Port Multiplier device specific information. Address Offset bits 6 to 3 are the Port Multiplier Port number for the device to which the status bits apply. There is one register for each of 16 possible port multiplier ports. These registers are part of the LRAM. * * * * * * * Bit [31:17]: Reserved Bit [16]: service_pending (R/W). Indicates that a service request has been received from this device and a SERVICE command has not yet been acknowledged. Bit [15]: legacy_queue (R/W). Indicates that one or more legacy queued commands are outstanding to this device. Bit [14]: native_queue (R/W). Indicates that one or more native queued commands are outstanding to this device. Bit [13]: device_busy (R/W). Virtual BSY bit indicating that a command has been issued to the device without receipt of a final register FIS or that a data transfer is in progress. Bit [12:08]: exec_active_slot (R/W). Contains the slot number of the last command active on this device. Bit [07:00]: pio_end_status (R/W). Contains the PIO ending status of the last PIO setup command received from this device.
6.3.18 Port Device QActive Register Address Offset: F84H (PM Port 0)/ F8CH (PM Port 1) / F94H (PM Port 2) / F9CH (PM Port 3) / FA4H (PM Port 4) / FACH (PM Port 5) / FB4H (PM Port 6) / FBCH (PM Port 7) / FC4H (PM Port 8) / FCCH (PM Port 9) / FD4H (PM Port 10) / FDCH (PM Port 11) / FE4H (PM Port 12) / FECH (PM Port 13) / FF4H (PM Port 14) / FFCH (PM Port 15) Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
QActive[31:0]
These 16 registers contain Port Multiplier device specific status indicating outstanding queued commands in the device. For each bit set to one, a queued command, legacy or native, is outstanding associated with the slot number corresponding to the bit position. There is one register for each of 16 possible port multiplier ports. Address Offset bits 6 to 3 are the Port Multiplier Port number for the device to which the status bits apply. * Bit [31:00]: Each bit corresponds to a slot number that contains an active outstanding legacy or native queued command.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 73
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.19 Port Context Register Address Offset: 1E04H Access Type: Read
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved
PM Port
Slot
* * *
Bit [31:09]: Reserved Bit [08:05]: PM Port (R). This field contains the Port Multiplier port number corresponding to the last FIS transferred (transmit or receive). Upon a processing halt due to a device specific error, this field contains the PM port corresponding to the device that returned error status. Bit [04:00]: Slot (R). This field contains the slot number of the last command processed by the execution unit. Note that this slot number does not necessarily correspond to the command in error during error halt conditions. For native queue error recovery, the command slot in error must be determined by issuing a READ LOG EXTENDED to the device to determine the tag number of the command in error.
6.3.20 SControl Address Offset: 1F00H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved PMP SPM IPM SPD DET
This register is the SControl register as defined by the Serial ATA specification (section 10.1.3). * Bit [31:16]: Reserved (R). This bit field is reserved and returns zeros on a read. * Bit [19:16]: PMP (R/W). This field identifies the currently selected Port Multiplier port for accessing the SActive register and some bit fields of the Diagnostic registers. * Bit [15:12]: SPM (R/W). This field selects a power management state. A non-zero value written to this field causes initiation of the select power management state. This field self-resets to 0 as soon as action begins to initiate the power management state transition. Value 0000 0001 0010 0100 others * Definition No power management state transition requested Transition to the Partial power management state initiated Transition to the Slumber power management state initiated Transition from a power management state initiated (ComWake asserted) Reserved
Bit [11:08]: IPM (R/W) - This field identifies the interface power management states that may be invoked via the Serial ATA interface power management capabilities. Value 0000 0001 0010 0011 others Definition No interface power management restrictions (Partial and Slumber modes enabled) Transitions to the Partial power management state are disabled Transitions to the Slumber power management state are disabled Transitions to both the Partial and Slumber power management states are disabled Reserved
*
Bit [07:04]: SPD (R/W) - This field identifies the highest allowed communication speed the interface is allowed to negotiate. Value 0000 0001 Definition No restrictions (default value) Limit to Generation 1 (1.5 Gb/s) SiI-DS-0208-C 74
(c) 2006 Silicon Image, Inc.
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
0010 others * Limit to Generation 2 (3.0 Gb/s) Reserved
Bit [03:00]: DET (R/W) - This field controls host adapter device detection and interface initialization. Value 0000 0001 0100 Others Action No action COMRESET is periodically generated until another value is written to the field No action Reserved, no action
6.3.21 SStatus Address Offset: 1F04H Access Type: Read Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved IPM SPD DET
This register is the SStatus register as defined by the Serial ATA specification (section 10.1.1). * Bit [31:12]: Reserved (R). This bit field is reserved and returns zeros on a read. * Bit [11:08]: IPM (R) - This field identifies the current interface power management state. Value 0000 0001 0010 0110 Others * Definition Device not present or communication not established Interface in active state Interface in Partial power management state Interface in Slumber power management state Reserved
Bit [07:04]: SPD (R) - This field identifies the negotiated interface communication speed. Value 0000 0001 0010 Others Definition No negotiated speed (reported if phygood false) Generation 1 communication rate (1.5 Gb/s) Generation 2 communication rate (3.0 Gb/s) Reserved
*
Bit [03:00]: DET (R) - This field indicates the interface device detection and PHY state. Value 0000 0001 0011 0100 Others Action No device detected and PHY communication not established (phygood false) Device presence detected but PHY communication not established Device presence detected and PHY communication established (phygood true) PHY in offline mode as a result of the interface being disabled or running in a BIST loopback mode Reserved, no action
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 75
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.22 SError Address Offset: 1F08H Access Type: Read/Write 1 Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 RRRRRXFTSHCDBWI NRRRREPCTRRRR R R M I
DIAG ERR
This register is the SError register as defined by the Serial ATA specification (section 10.1.2). * Bit [31:16]: DIAG (R/W1C) - This field contains bits defined as shown in the following table. Writing a 1 to the register bit clears the B, C, F, N, H, W, and X bits. Writing a 1 to the corresponding bits in the Port Interrupt Status register also clears the F, N, W, and X bits. The B, C, and H bits operate independently of the corresponding error counter registers; if the error counters are used, these bits should be ignored. Bit Definition Description B C D F I N H R S T W X 10b to 8b decode error CRC error Disparity error Unrecognized FIS type PHY Internal error PHYRDY change Handshake error Reserved Link Sequence error Transport state transition error ComWake Device Exchanged Latched decode error or disparity error from the Serial ATA PHY Latched CRC error from the Serial ATA PHY N/A, always 0; this error condition is combined with the decode error and reported as B error Latched Unrecognized FIS error from the Serial ATA Link N/A, always 0 Indicates a change in the status of the Serial ATA PHY Latched Handshake error from the Serial ATA PHY Always 0 N/A, always 0 N/A, always 0 Latched ComWake status from the Serial ATA PHY Latched ComInit status from the Serial ATA PHY
Table 6-10 SError Register Bits (DIAG Field) * Bit [15:00]: ERR - This field is not implemented; all bits are always 0.
6.3.23 SActive Address Offset: 1F0CH Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Active bits
This register provides indirect access of the Port Device QActive registers (see section 6.3.18 for description). It contains the Active bits used to determine the activity of native queued commands for the selected Port Multiplier port (selection in SControl). A one in any bit position indicates that the corresponding command is still active in the device.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 76
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.3.24 SNotification Address Offset: 1F10H Access Type: Read/Write 1 to Clear Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Notify bits
This register reports the devices that have sent a Set Device Bits FIS with the Notification bit set. * * Bit [31:16]: Reserved (R). This bit field is reserved and returns zeros on a read. Bit [15:00]: Notify bits (R/W1C) - These 16 bits correspond to the 16 possible devices connected to a Port Multiplier on this port.
6.4 Internal Register Space - Base Address 2
These registers are 32-bits wide and provide Indirect Register Access to the registers of the SII3531A. Access to this register space is through the PCI I/O space. Address Offset 00H 04H 08H 0CH Register Name Global Register Offset Global Register Data Port Register Offset Port Register Data
Table 6-11 SII3531A Internal Register Space - Base Address 2 6.4.1 Global Register Offset Address Offset: 00H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Dword Offset 00
This register provides indirect addressing of a Global Register otherwise accessible directly via Base Address Register 0. The Dword address offset for an indirect access is in bits 6 to 2; bits 31 to 7, 1, and 0 are reserved and should always be 0. Indirect access is not allowed to the Global registers at offsets 0x78 through 0x7F (Configuration register indirect access). 6.4.2 Global Register Data Address Offset: 04H Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
As defined for indirectly accessed register
This register provides the indirect access addressed by the Global Register Offset register.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 77
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
6.4.3 Port Register Offset Address Offset: 08H Access Type: Read/Write Reset Value: 0x0000_0000
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Reserved Dword Offset 00
This register provides indirect addressing of a Port Register otherwise accessible directly via Base Address Register 1. The Dword address offset for an indirect access is in bits 12 to 2; bits 31 to 13, 1, and 0 are reserved and should always be 0.
6.4.4 Port Register Data Address Offset: 0CH Access Type: Read/Write
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
As defined for indirectly accessed register
This register provides the indirect access addressed by the Port Register Offset register.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 78
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
7 Power Management
The following register bits control Power Management in the SII3531A Port. Register Interrupt Status SError Interrupt Status SControl Bits PM Change Bit 3 W Bit 18 ComWake Bit 5 SPM Bits 15-12 IPM Bits 11-8 IPM Bits 11-8 Description This bit reports a change in the Power Management mode. It corresponds to the interrupt enabled by bit 3 of the Port Interrupt Enable register. This bit reports a ComWake received from the Serial ATA bus. It corresponds to the interrupt enabled by bit 5 of the Port Interrupt Enable register. This bit field initiates transitions to/from Partial or Slumber power management states; bit 14 corresponds to ComWake (exit power management); bit 13 corresponds to Slumber mode; bit 12 corresponds to Partial mode. This bit field disables transitions to Partial or Slumber power management states; bit 9 corresponds to Slumber mode; bit 8 corresponds to Partial mode. This bit field reports the power management state; `0110' corresponds to Slumber mode; `0010' corresponds to Partial mode. Table 7-1 Power Management Register Bits There are two power management modes: Partial and Slumber. These power management modes may be software initiated through the SControl register or device initiated from the Serial ATA device. Transitions to and from either power management mode generate an interrupt, the Power Management Mode Change Interrupt, which may be masked in the Port Interrupt Enable register (bit 3). Partial/Slumber mode may be initiated by software through the SControl register. By setting the SPM field to either `0001' (Partial) or '0010' (Slumber), software causes a PMREQ to the Serial ATA device, which will respond with either a PMACK or PMNAK. If a PMACK is received the Partial/Slumber mode is entered. A PMNAK is ignored; the request remains asserted. The Serial ATA device may initiate Partial/Slumber mode. Software enables the acknowledgement of this request by setting the IPM field in the SControl register to `0001' (Partial), `0010' (Slumber), or `0011' (Partial or Slumber). If enabled, a PMACK will be sent to the device; if not enabled, a PMNAK will be sent. When the request is received and its acknowledgement is enabled, Partial/Slumber mode is entered. Partial/Slumber mode status is reported in the SStatus register (`0010'/'0110' in the IPM field). Partial/Slumber mode is cleared by ComWake (asserted when the SPM field is set to `0100').
SControl SStatus
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 79
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Legal Statement Copyright Notice Copyright (c) 2006 Silicon Image, Inc. All rights reserved. These materials contain proprietary and/or confidential information (including trade secrets, copyright and/or other interests) of Silicon Image, Inc. You may not use these materials except only for your bona fide non-commercial evaluation of your potential purchase of products and/services from Silicon Image or its affiliates, and/or only in connection with your purchase of products and/or services from Silicon Image or its affiliates, and only in accordance with the terms and conditions herein. You have no right to copy, modify, transfer, sublicense, publicly display, create derivative works of or distribute these materials, or otherwise make these materials available, in whole or in part, to any third party. Trademark Acknowledgment Silicon ImageTM, VastLaneTM, SteelVineTM, PinnaClearTM, SimplayTM, Simplay HDTM, SatalinkTM, and TMDSTM are trademarks or registered trademarks of Silicon Image, Inc. in the United States and other countries. HDMITM, the HDMI logo and HighDefinition Multimedia InterfaceTM are trademarks or registered trademarks of, and are used under license from, HDMI Licensing, LLC. Disclaimers These materials are provided on an "AS IS" basis. SILICON IMAGE, INC. AND ITS AFFILIATES DISCLAIM ALL REPRESENTATIONS AND WARRANTIES (EXPRESS, IMPLIED, STATUTORY OR OTHERWISE), INCLUDING BUT NOT LIMITED TO: (I) ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR NON-INFRINGEMENT OF THIRD PARTY RIGHTS; (II) ALL WARRANTIES ARISING OUT OF COURSE-OFDEALING, USAGE, AND/OR TRADE; AND (III) ALL WARRANTIES THAT THE INFORMATION OR RESULTS PROVIDED IN, OR THAT MAY BE OBTAINED FROM USE OF, THE MATERIALS ARE ACCURATE, RELIABLE, COMPLETE, UP-TODATE, OR PRODUCE SPECIFIC OUTCOMES. SILICON IMAGE, INC. AND ITS AFFILIATES ASSUME NO LIABILITY OR RESPONSIBILITY FOR ANY ERRORS OR OMISSIONS IN THESE MATERIALS, MAKES NO COMMITMENT OR WARRANTY TO CORRECT ANY SUCH ERRORS OR OMISSIONS OR UPDATE OR KEEP CURRENT THE INFORMATION CONTAINED IN THESE MATERIALS, AND EXPRESSLY DISCLAIMS ALL DIRECT, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL, RELIANCE AND PUNITIVE DAMAGES, INCLUDING WITHOUT LIMITATION ANY LOSS OF PROFITS ARISING OUT OF YOUR ACCESS TO, USE OR INTERPRETATION OF, OR ACTIONS TAKEN OR NOT TAKEN BASED ON THE CONTENT OF THESE MATERIALS. Silicon Image, Inc. and its affiliates reserve the right, without notice, to periodically modify the information in these materials, and to add to, delete, and/or change any of this information. Notwithstanding the foregoing, these materials shall not, in the absence of authorization under U.S. and local law and regulations, as required, be used by or exported or re-exported to (i) any U.S. sanctioned or embargoed country, or to nationals or residents of such countries; or (ii) any person, entity, organization or other party identified on the U.S. Department of Commerce's Denied Persons or Entity List, the U.S. Department of Treasury's Specially Designated Nationals or Blocked Persons List, or the Department of State's Debarred Parties List, as published and revised from time to time; (iii) any party engaged in nuclear, chemical/biological weapons or missile proliferation activities; or (iv) any party for use in the design, development, or production of rocket systems or unmanned air vehicles. Products and Services The products and services described in these materials, and any other information, services, designs, know-how and/or products provided by Silicon Image, Inc. and/or its affiliates are provided on as "AS IS" basis, except to the extent that Silicon Image, Inc. and/or its affiliates provides an applicable written limited warranty in its standard form license agreements, standard Terms and Conditions of Sale and Service or its other applicable standard form agreements, in which case such limited warranty shall apply and shall govern in lieu of all other warranties (express, statutory, or implied). EXCEPT FOR SUCH LIMITED WARRANTY, SILICON IMAGE, INC. AND ITS AFFILIATES DISCLAIM ALL REPRESENTATIONS AND WARRANTIES (EXPRESS, IMPLIED, STATUTORY OR OTHERWISE), REGARDING THE INFORMATION, SERVICES, DESIGNS, KNOW-HOW AND PRODUCTS PROVIDED BY SILICON IMAGE, INC. AND/OR ITS AFFILIATES, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND/OR NON-INFRINGEMENT OF THIRD PARTY RIGHTS. YOU ACKNOWLEDGE AND AGREE THAT SUCH INFORMATION, SERVICES, DESIGNS, KNOW-HOW AND PRODUCTS HAVE NOT BEEN DESIGNED, TESTED, OR MANUFACTURED FOR USE OR RESALE IN SYSTEMS WHERE THE FAILURE, MALFUNCTION, OR ANY INACCURACY OF THESE ITEMS CARRIES A RISK OF DEATH OR SERIOUS BODILY INJURY, INCLUDING, BUT NOT LIMITED TO, USE IN NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION, EMERGENCY SYSTEMS, OR OTHER SYSTEMS WITH A SIMILAR DEGREE OF POTENTIAL HAZARD. NO PERSON IS AUTHORIZED TO MAKE ANY OTHER WARRANTY OR REPRESENTATION CONCERNING THE PERFORMANCE OF THE INFORMATION, PRODUCTS, KNOWHOW, DESIGNS OR SERVICES OTHER THAN AS PROVIDED IN THESE TERMS AND CONDITIONS.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 80
PCI Express to Serial ATA Controller Data Sheet
Silicon Image, Inc.
Further Information To request other materials, documentation, and information, contact your local Silicon Image, Inc. sales office or visit the Silicon Image, Inc. web site at www.siliconimage.com.
(c) 2006 Silicon Image, Inc.
SiI-DS-0208-C 81


▲Up To Search▲   

 
Price & Availability of SII3531A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X